From: daniel dot buschke at nextiraone dot de
Operating system: Linux
PHP version: 5CVS-2007-08-29 (snap)
PHP Bug Type: *Network Functions
Bug description: fsockopen: "Operation now in progress"
Description:
------------
When trying to connect to a host via fsockopen and socksify (see dante) I
get following:
PHP Warning: fsockopen(): unable to connect to 1.2.3.4:99 (Operation now
in progress) in /socksify.php on line 15
But "Operation now in progress" is not an error which tolds that connect
fails.
socket_create and socket_connect are working fine.
seems like #39803 but has different version. Patch of #38568 did not work
Reproduce code:
---------------
<?php
$sock = fsockopen('1.2.3.4', 99);
?>
Expected result:
----------------
$sock should be an handle which is usable with fread or sth like this
$sock !== FALSE
Actual result:
--------------
PHP Warning: fsockopen(): unable to connect to 1.2.3.4:99 (Operation now
in progress) in /socksify.php on line 15
$sock === FALSE
--
Edit bug report at http://bugs.php.net/?id=42467&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42467&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42467&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42467&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42467&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42467&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42467&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42467&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42467&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42467&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42467&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42467&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42467&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42467&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42467&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42467&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42467&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42467&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42467&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42467&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42467&r=mysqlcfg