Bug #63570 [Opn]: Bogus warning 'Operation now in progress'
| From: | kakserpompoyaitsam at gmail dot com | Date: | Wed, 21 Nov 2012 17:24:08 +0000 |
| Subject: | Bug #63570 [Opn]: Bogus warning 'Operation now in progress' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174835@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63570&edit=1
ID: 63570
User updated by: kakserpompoyaitsam at gmail dot com
Reported by: kakserpompoyaitsam at gmail dot com
-Summary: Bonus warning 'Operation now in progress'
+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:
It would awesome if you include it to 5.5.
Previous Comments:
------------------------------------------------------------------------
[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