#41304 [Asn->Csd]: compress.zlib temp files left
| From: | dmitry@php.net | Date: | Tue, 08 May 2007 12:09:14 +0000 |
| Subject: | #41304 [Asn->Csd]: compress.zlib temp files left | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112396@lists.php.net to get a copy of this message | ||
ID: 41304
Updated by: dmitry@php.net
Reported By: michal dot albrecht at aster dot pl
-Status: Assigned
+Status: Closed
Bug Type: Streams related
Operating System: Linux
PHP Version: 5.2.2
Assigned To: dmitry
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-05-08 08:24:26] judas dot iscariote at gmail dot com
yes, seems to be caused by this commit
http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/zlib_fopen_wrapper.c?r1=1.48&r2=1.49
reverting to the PHP 5.2.1 version works but leaks memory.. I guess
some flag php_stream_free is missing but Im not familiar enough with the
streams layer to fix it ;-(
------------------------------------------------------------------------
[2007-05-06 12:40:39] michal dot albrecht at aster dot pl
Description:
------------
Using the syntax given below leads to a temp file left in tmp
directory.
The file is file.gz with random name like php??????
Previous version 5.2.1 seems to be OK.
fopen('compress.zlib://http://www.somedomain.pl/file.gz',
'rb');
Reproduce code:
---------------
$f = fopen('compress.zlib://http://www.somedomain.pl/file.gz',
'rb');
if ( !$f ) die("Error");
while ( !feof($f) ) {
echo fread($f, 1024);
}
fclose($f);
Expected result:
----------------
There shouldn't be any file left in the tmp directory.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41304&edit=1