ID:               32301
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ralph at cs dot cf dot ac dot uk
-Status:           Open
+Status:           Feedback
-Bug Type:         *Compression related
+Bug Type:         Zlib Related
 Operating System: MacOS X 10.3.x
 PHP Version:      5.0.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Works fine for me.



Previous Comments:
------------------------------------------------------------------------

[2005-03-14 14:42:35] ralph at cs dot cf dot ac dot uk

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 this bug report at http://bugs.php.net/?id=32301&edit=1

Reply via email to