Edit report at https://pear.php.net/bugs/bug.php?id=20382&edit=1
ID: 20382
Updated by: [email protected]
Reported By: malcolm dot reeves at fullcircuit dot com
Summary: gzopen fix
-Status: Open
+Status: Closed
Type: Bug
Package: Archive_Tar
Operating System: Ubuntu 14.04.1 32bit
Package Version: 1.3.12
PHP Version: 5.5.9
-Assigned To:
+Assigned To: mrook
-Roadmap Versions:
+Roadmap Versions: 1.3.13
New Comment:
-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.
Previous Comments:
------------------------------------------------------------------------
[2014-08-31 18:46:29] malc_b
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.
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20382&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.