php5-cli + openssl bug on edgy 64bit (amd)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php5
referring to this previous bug's report on official php website;
http://
i have installed php5(5.1.6), php5-cli with openssl, apache2's, and mysql-5.x. oh my Dual Opteron AMD 64Bit, 2.6.19.Kernel SMP (compiled) on my Ubuntu-Edgy (6.10)
here's the problem reviews;
-------
Description:
------------
Using stream_
fails to report correct values with stream_select. Using fread to get
one byte before stream_select suddenly makes stream_select work as
expected.
Without it stream_select returns 0 changed streams even though there is
data waiting. Service used as an endpoint is persistent and doesn't
close the connection after it's output. PHP is CLI-version.
Reproduce code:
---------------
$c = stream_
while (1)
{
$streams = array($c);
if (stream_
print "Data received\n";
}
}
// IP:Port can be anything which outputs something after connection.
Expected result:
----------------
Text "Data received" after connection and output from the service. The
service can be anything which just outputs something right after
connect.
-------
the *newest* package from apt-get still not working with the previous php5 + bug.
it will create an infinite loops and eat the cpu 100%
any idea how to fix it?
If it's already been reported upstream, there's not much more we can sensibly do about it.