From: garfield_fr at tiscali dot fr Operating system: Windows 2000 PHP version: 4.3.1 PHP Bug Type: *Network Functions Bug description: fsocketopen fail when connecting to server where calling script run
Config : OS : Win2000 Server HTTP : IIS5 PHP 4.3.1 ISAPI I have 2 scripts : client.php and server.php on a server. I can use these scripts by http://mysite.domain.net/server.php and http://mysite.domain.net/client.php. In fact, client.php is a test script to check server.php, a web services using nuSOAP. both scripts are using nuSOAP.php. 1/ When client.php run on server and call server.php with URL : http://mysite.domain.net/server.php I have a fsockopen error: [05-Apr-2003 22:15:10] PHP Warning: fsockopen() [<a href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]: php_hostconnect: connect failed in E:\wwwwRoot\mysite\nuSOAP\nusoap.php on line 1352 [05-Apr-2003 22:15:10] PHP Warning: fsockopen() [<a href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]: unable to connect to mysite.domain.net:80 in E:\wwwwRoot\mysite\nuSOAP\nusoap.php on line 1352 2/ When I use my computer to run client.php (running at http://10.0.0.11/client.php where 10.0.0.11 is my local IP) and call server.php at http://mysite.domain.net/server.php I have a good result and evry thing work fine. 3/ When I use my computer to run client.php (running at http://10.0.0.11/client.php where 10.0.0.11 is my local IP) and call server.php at http://10.0.0.11/server.php I have a good result and evry thing work fine too !!! >From 1/ and 2/ I think fsockopen() can't open a connection on the server who run the calling scripts (remember, it's in ISAPI mode)...so maybe a bug here ? but from why 3/ work ? my local server is in ISAPI mode to (IIS5/W2K Pro SP3)... conclusion : fsockopen seem to fail in some case .... I think is a bug ??? -- Edit bug report at http://bugs.php.net/?id=23066&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23066&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23066&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23066&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23066&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23066&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23066&r=support Expected behavior: http://bugs.php.net/fix.php?id=23066&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23066&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23066&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23066&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23066&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23066&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23066&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23066&r=gnused
