ID: 27509 Updated by: [EMAIL PROTECTED] Reported By: scott at abcoa dot com -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: AIX 4.3.3 PHP Version: 4.3.4 New Comment:
Please do NOT paste configure outputs here unless asked for. And this bug is about PHP 4, not PHP 5 so try the correct snaphot. (PHP 5 beta 4 is too old already anyway) I will try this myself on an AIX machine. Previous Comments: ------------------------------------------------------------------------ [2004-03-09 08:17:24] [EMAIL PROTECTED] You have to delete config.cache when you reconfigure. Otherwise the change will NOT be noted. So please try again.. ------------------------------------------------------------------------ [2004-03-08 16:51:22] scott at abcoa dot com Further notice... I noticed the PHP version 4.3.1 on an another AIX machine does have this same problem with the fsockopen(). So, it could be between 4.2.3 and 4.3.1 when it all of a sudden just don't work. ------------------------------------------------------------------------ [2004-03-08 13:09:01] scott at abcoa dot com Yea, it is a clean build. Tried it again with php5 beta 4 from the php.net website. Don't see any CVS links for that. Still get the error but it's a different errors. I can not make sense out of this one. --snip-- Content-type: text/html X-Powered-By: PHP/5.0.0b4 !#/usr/local/bin/php <br /> <b>Warning</b>: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to www.google.com:80 (Unknown error) in <b><<file path omitted by me>></b> on line <b>7</b><br /> 268976720 --snip-- The output, "268976720" is the output by $errstr... Oddly, no displayed $errno... I tried the --disable-ipv6 option and ran the configure, it showed that IP V6 Support is found during the configuration. Thought you may want to know because I'm not sure if this may help. ------------------------------------------------------------------------ [2004-03-08 11:52:38] [EMAIL PROTECTED] Are you 100% sure you made a clean build after reconfiguring php ? (make clean ; make) If yes, please try building latest php5 snapshot as a cli to test your script; it has some runtime intelligence to detect systems with broken network stacks. ------------------------------------------------------------------------ [2004-03-08 10:06:30] scott at abcoa dot com In reply to the 3 comments since my last reply. 1) Excuse my typo, so tried again on the tcp with "//" and got an errno with "0" and errstr with "Error 0". The fsockopen() instruction at php.net showed that this meant an error had occur before the fsockopen(). So, tried the "127.0.0.1" without the "tcp://" and got the original error, with "66" and "Addr family not supported by protocol". You know, I did this one test by using the terminal emulator and use the telnet command, "telnet www.google.com 80" and was able to connected successfully and receive data from it. 2) Recompiled the latest CVS snapshot and still get the same error message. 3) Again, recompiled the latest CVS snapshot with "--disable-ipv6" option and still get this same error message. Now I'm a little concern about how much of a time will be spend on this or whether would this be dragged on like months and months or something. Scott ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27509 -- Edit this bug report at http://bugs.php.net/?id=27509&edit=1