Edit report at https://bugs.php.net/bug.php?id=60719&edit=1
ID: 60719
Comment by: seguer at gmail dot com
Reported by: alexander dot haensch at gmail dot com
Summary: dev-lang/php-5.3.9 has problems with
stream_get_line()
Status: Feedback
Type: Bug
Package: Streams related
Operating System: gentoo
PHP Version: 5.3.9
Block user comment: N
Private report: N
New Comment:
I can confirm this occuring with PHP 5.3.9 and beanstalkd.
I have created an issue with test code on the beanstalkd github repo:
https://github.com/kr/beanstalkd/issues/88
It only seems to happen with a socket connection to a beanstalkd service, as
testing it against google.com.au is fine.
Previous Comments:
------------------------------------------------------------------------
[2012-01-11 22:41:19] [email protected]
There's a change in 5.3.9 in stream_get_line that may be causing your problems,
but to understand if it's a bug in PHP, we'd need a short reproducible script
(or a pair of scripts in this case).
Thanks.
------------------------------------------------------------------------
[2012-01-11 18:31:42] alexander dot haensch at gmail dot com
Description:
------------
It looks like that the new php version has a problem with talking to beanstalkd
on a local socket.
example:
$packet = stream_get_line($this->_connection, 16384, "\r\n");
https://github.com/davidpersson/beanstalk/blob/master/src/Socket/Beanstalk.php#L190
Expected result:
----------------
operation should finish in below 1second
Actual result:
--------------
needs about 1 minute to complete
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60719&edit=1