Bug #52013 [Com]: Unable to decompress files in a compressed phar.
| From: | janani at us dot ibm dot com | Date: | Thu, 13 Oct 2011 16:16:04 +0000 |
| Subject: | Bug #52013 [Com]: Unable to decompress files in a compressed phar. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164301@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52013&edit=1
ID: 52013
Comment by: janani at us dot ibm dot com
Reported by: frederic dot hardy at mageekbox dot net
Summary: Unable to decompress files in a compressed phar.
Status: Closed
Type: Bug
Package: PHAR related
Operating System: FreeBSD
PHP Version: 5.3.2
Assigned To: bjori
Block user comment: N
Private report: N
New Comment:
This issue does not seem to be fixed on my RHEL6 box with php 5.3.3 with the patch for this applied.
With the patch, instead of the failure being reported in the decompressFiles(),there is an error
when trying to retrieve the decompressed files in file_get_contents().
Test Results while executing test script provided in the description of this bug:
> php -f test1.php
PHP Warning: file_get_contents(1.php): failed to open stream: No such file or directory in
/tmp/test1.php on line 29
bool(false)
PHP Warning: file_get_contents(10.php): failed to open stream: No such file or directory in
/tmp/test1.php on line 29
bool(false)
PHP Warning: file_get_contents(11.php): failed to open stream: No such file or directory in
/tmp/test1.php on line 29
bool(false)
....
Previous Comments:
------------------------------------------------------------------------
[2011-09-01 09:17:51] mbeccati@php.net
Issue doesn't seem to be fixed on my FreeBSD 6.2 box even using latest 5.4 HEAD.
The phar_stream_copy_to_stream() call returns failure due to an error in the underlying write().
Errno is 14 (Bad address) and my feeling is that the write len ends up being actually bigger than
the source buffer.
------------------------------------------------------------------------
[2011-08-29 14:20:28] bjori@php.net
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2011-08-29 14:19:44] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=315703
Log: Fixed bug#52013 (Unable to decompress files in a compressed phar)
------------------------------------------------------------------------
[2010-07-02 04:46:45] ericstewart@php.net
Automatic comment from SVN on behalf of ericstewart
Revision: http://svn.php.net/viewvc/?view=revision&revision=300928
Log: Added test for bug 52013 to PHP_5_3.
------------------------------------------------------------------------
[2010-07-02 04:45:58] ericstewart@php.net
Automatic comment from SVN on behalf of ericstewart
Revision: http://svn.php.net/viewvc/?view=revision&revision=300927
Log: Added test for bug 52013 to trunk.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=52013
--
Edit this bug report at https://bugs.php.net/bug.php?id=52013&edit=1