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

Reply via email to