From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP3
PHP version: 5.2.6
PHP Bug Type: Zlib Related
Bug description: gzfile
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 bug report at http://bugs.php.net/?id=44893&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44893&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44893&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44893&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44893&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44893&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44893&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44893&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44893&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44893&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44893&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44893&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44893&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44893&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44893&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44893&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44893&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44893&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44893&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44893&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44893&r=mysqlcfg