ID: 44893
Updated by: [EMAIL PROTECTED]
Reported By: sworddragon2 at aol dot com
-Status: Open
+Status: Feedback
Bug Type: Zlib Related
Operating System: Windows XP Professional SP3
PHP Version: 5.2.6
New Comment:
Couldn't reproduce on Win XP SP2 with php-5.2.6-Win32.zip
Previous Comments:
------------------------------------------------------------------------
[2008-05-02 16:31:23] sworddragon2 at aol dot com
Description:
------------
If im trying to use the function gzfile() to a compressed file, that
includes just a picture, the function don't read the complete file. On
this reproduce, the function stops after the End Transmission Block.
Reproduce code:
---------------
$file=fopen("smiley1.gif","rb");
$picture=fread($file,filesize("smiley1.gif"));
fclose($file);
$file=gzopen("smiley1.gz","w");
gzwrite($file,$picture);
gzclose($file);
$file=gzfile("smiley1.gz");
print_r($file);
Expected result:
----------------
I expect to see all arrays until the end of the file.
Actual result:
--------------
With gzfile, i got just the array [0] with the content GIF89a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44893&edit=1