Edit report at https://bugs.php.net/bug.php?id=63570&edit=1
ID: 63570 Patch added by: osma...@php.net Reported by: kakserpompoyaitsam at gmail dot com Summary: Bogus warning 'Operation now in progress' Status: Open Type: Bug Package: Sockets related Operating System: linux PHP Version: 5.4.8 Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: ignore-warnings-for-nonblocking Revision: 1354535643 URL: https://bugs.php.net/patch-display.php?bug=63570&patch=ignore-warnings-for-nonblocking&revision=1354535643 Previous Comments: ------------------------------------------------------------------------ [2012-11-28 12:41:30] osma...@php.net The following patch has been added/updated: Patch Name: ignore-EINPROGRESS-warning-nonblocking-2 Revision: 1354106490 URL: https://bugs.php.net/patch-display.php?bug=63570&patch=ignore-EINPROGRESS-warning-nonblocking-2&revision=1354106490 ------------------------------------------------------------------------ [2012-11-28 12:40:08] osma...@php.net The following patch has been added/updated: Patch Name: ignore-EINPROGRESS-warning-nonblocking Revision: 1354106408 URL: https://bugs.php.net/patch-display.php?bug=63570&patch=ignore-EINPROGRESS-warning-nonblocking&revision=1354106408 ------------------------------------------------------------------------ [2012-11-28 12:33:54] osma...@php.net The following patch has been added/updated: Patch Name: ignore-EINPROGRESS-warning Revision: 1354106034 URL: https://bugs.php.net/patch-display.php?bug=63570&patch=ignore-EINPROGRESS-warning&revision=1354106034 ------------------------------------------------------------------------ [2012-11-21 17:24:08] kakserpompoyaitsam at gmail dot com It would awesome if you include it to 5.5. ------------------------------------------------------------------------ [2012-11-21 05:52:36] kakserpompoyaitsam at gmail dot com Description: ------------ When I'm getting annoying warning while working with non-blocking socket, For instance: socket_connect(): unable to connect [115]: Operation now in progress Hence, I have to use @socket_connect and the performance getting compromised. I do use pecl-libevent, and this error makes no sense at all. Please do not ignore this little defect, Thank you in advance. Test script: --------------- <?php ini_set('display_errors', 'On'); error_reporting(-1); $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_set_nonblock($socket); socket_connect($socket, '8.8.8.8', 53); Expected result: ---------------- Warning: socket_connect(): unable to connect [115]: Operation now in progress in ... Actual result: -------------- Empty. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63570&edit=1