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 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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