ID: 44893 User updated by: sworddragon2 at aol dot com Reported By: sworddragon2 at aol dot com -Status: Feedback +Status: Open Bug Type: Zlib Related Operating System: Windows XP Professional SP3 -PHP Version: 5.2.6 +PHP Version: 5.2.7RC2-dev 5.3.0alpha3-dev New Comment:
I tested it with the 5.2.7RC2-dev and the 5.3.0alpha3-dev from your link, but the bug isn't fixed. In both versions, Firefox 3.0.3 gives me an output of: Array ( [0] => GIF89a ) It breaks again after the End Transmission Block. I used the same picture again. Previous Comments: ------------------------------------------------------------------------ [2008-10-28 13:23:48] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2008-05-06 11:08:43] [EMAIL PROTECTED] Im able to re-produce this on Windows XP SP2 using the image you supplied aswell as with other files would return odd strings ------------------------------------------------------------------------ [2008-05-02 21:19:38] sworddragon2 at aol dot com I used this picture for the example: http://img501.imageshack.us/img501/7006/smiley1dr6.gif Maybe it helps you to reproduce the problem. But this was not the only picture with that I can reproduce the problem. ------------------------------------------------------------------------ [2008-05-02 20:49:26] [EMAIL PROTECTED] Couldn't reproduce on Win XP SP2 with php-5.2.6-Win32.zip ------------------------------------------------------------------------ [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