From: ralph at cs dot cf dot ac dot uk
Operating system: MacOS X 10.3.x
PHP version: 5.0.3
PHP Bug Type: *Compression related
Bug description: PHP hangs during decompression
Description:
------------
Running the following compression / decompression code
on MacOS X results in php hanging, and control never
being retuyrned to the user.
One particular side effect is that doing
sudo pear upgrade-all
does not install the upgrades and hangs. However, this
problem appears to be in php itself, not pear.
Reproduce code:
---------------
<?php
$fd = gzopen('temp.gz', 'wb9');
for ($i=0; $i<5000; $i++)
gzwrite($fd, "hello world !");
gzclose($fd);
$fd = gzopen('temp.gz', 'rb');
while (strlen($v_binary_data = gzread($fd, 512)) != 0) {
}
gzclose($fd);
echo "OK Done !";
?>
Expected result:
----------------
OK Done!
on completion.
Actual result:
--------------
Never returns.
--
Edit bug report at http://bugs.php.net/?id=32301&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32301&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32301&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32301&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32301&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32301&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32301&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32301&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32301&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32301&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32301&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32301&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32301&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32301&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32301&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32301&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32301&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32301&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32301&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32301&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32301&r=mysqlcfg