From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP2
PHP version: 5.2.5
PHP Bug Type: Zlib Related
Bug description: Bug report
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","r");
$picture=fread($file,filesize("smiley1.gif"));
fclose($file);
$file=gzopen("smiley1.gz","w");
gzwrite($file,$picture);
gzclose($file);
//readgzfile("smiley1.gz"); With readgzfile, i get the correct picture
information (132 Byte).
$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=43637&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43637&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43637&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43637&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43637&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43637&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43637&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43637&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43637&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43637&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43637&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43637&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43637&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43637&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43637&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43637&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43637&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43637&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43637&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43637&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43637&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43637&r=mysqlcfg