#32301 [Com]: PHP hangs during decompression
| From: | timmerk at comcast dot net | Date: | Sat, 11 Jun 2005 07:10:51 +0000 |
| Subject: | #32301 [Com]: PHP hangs during decompression | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80142@lists.php.net to get a copy of this message | ||
ID: 32301
Comment by: timmerk at comcast dot net
Reported By: ralph at cs dot cf dot ac dot uk
Status: Open
Bug Type: Zlib Related
Operating System: MacOS X 10.3.x
PHP Version: php5-200503301230
New Comment:
Please fix this! Everyone is having this issue with PHP/PEAR.
See these links:
http://pear.php.net/bugs/bug.php?id=948
http://pear.php.net/bugs/bug.php?id=3772
Previous Comments:
------------------------------------------------------------------------
[2005-03-30 15:48:52] ralph at cs dot cf dot ac dot uk
When doing make test for php, I get the following issue,
which may or may not be related to this problem
gzopen(), gzread(), gzwrite() for non-compressed data
[ext/zlib/tests/gzreadgzwriteplain.phpt]
------------------------------------------------------------------------
[2005-03-30 15:45:59] ralph at cs dot cf dot ac dot uk
Have tried this with
php5-200503301230
Bug is still present.
------------------------------------------------------------------------
[2005-03-25 01:48:52] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2005-03-18 19:31:59] sniper@php.net
2nd try:
http://snaps.php.net/php5-latest.tar.gz
(for your convinience I removed the url for the win32
binaries..*SIGH*)
There's nothing wrong with the snapshot, I checked it myself.
------------------------------------------------------------------------
[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