Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.7

Bug #20382 gzopen fix
Submitted: 2014-08-31 22:46 UTC
From: malc_b Assigned: mrook
Status: Closed Package: Archive_Tar (version 1.3.12)
PHP Version: 5.5.9 OS: Ubuntu 14.04.1 32bit
Roadmaps: 1.3.13    
Subscription  


 [2014-08-31 22:46 UTC] malc_b (Malcolm Reeves)
Description: ------------ There is a know bug on php5 zlib where the gzopen function is missing and only gzopen64 function exists (when php is built with big files option and seems just to affect 32bit systems). Archive_Tar includes code (lines 47-66 in Tar.php) to fix this by defining a gzopen function if gzopen doesn't exist. This gzopen function just calls gzopen64, however it doesn't return the result from gzopen64 which can cause calling functions to fail. It returns the file pointer so most will fail. The line gzopen64($filename, $mode, $use_include_path); should be return(gzopen64($filename, $mode, $use_include_path)); and same applies to the gztell and gzseek fixes with should also be wrapped in return() to pass back their results.

Comments

 [2014-09-02 13:23 UTC] mrook (Michiel Rook)
-Status: Open +Status: Closed -Assigned To: +Assigned To: mrook -Roadmap Versions: +Roadmap Versions: 1.3.13
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.