Edit report at https://bugs.php.net/bug.php?id=60719&edit=1
ID: 60719 Updated by: cataphr...@php.net Reported by: alexander dot haensch at gmail dot com Summary: dev-lang/php-5.3.9 has problems with stream_get_line() Status: Assigned Type: Bug Package: Streams related Operating System: gentoo PHP Version: 5.3.9 Assigned To: cataphract Block user comment: N Private report: N New Comment: Snapshots can be found at http://snaps.php.net/ (note the fix is not in 5.4, only 5.3 and trunk). Previous Comments: ------------------------------------------------------------------------ [2012-01-23 08:20:11] cataphr...@php.net Yesterday I committed some fixes to stream_get_line() (see bug #60817). Please see if it has any influence in your problem (it's likely it does). Thank you. ------------------------------------------------------------------------ [2012-01-22 23:14:43] seguer at gmail dot com I have updated https://github.com/kr/beanstalkd/issues/88 with a packet trace suggested by kr, author of beanstalkd ------------------------------------------------------------------------ [2012-01-19 00:46:49] seguer at gmail dot com 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. ------------------------------------------------------------------------ [2012-01-11 22:41:19] cataphr...@php.net 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