ID: 50953 User updated by: tony at marston-home dot demon dot co dot uk Reported By: tony at marston-home dot demon dot co dot uk Status: Bogus Bug Type: Sockets related Operating System: Windows XP PHP Version: 5.2.12 New Comment:
THIS IS NOT BOGUS, IT IS A GENUINE BUG!!! If print_r(gethostbynamel('localhost')); produces the following: Array ( [0] => 127.0.0.1 ) then why can't fsockopen connect to 'localhost'? It is a valid name which is recognised by every other piece of software on my computer, so there is no good reason why fsockopen should have a problem with it. I have another PC which runs 5.3.0 where fsockopen does not have a problem with 'localhost', therefore there is a bug in 5.2 Previous Comments: ------------------------------------------------------------------------ [2010-02-10 10:18:16] paj...@php.net Already explained why it can't and won't be fixed in 5.2, neither in 5.3. Use the IP then instead of the hostname. Bogus (duplicated, not really a bug per se but a feature,etc.) ------------------------------------------------------------------------ [2010-02-10 08:17:49] carsten_sttgt at gmx dot de > Did you install IPv6 support for XP? Yes. > Comment out the IPv6 entries for localhost Of course not! (PHP is not the center of the universe and i need a working IPv6) > (see the other bogus reports for detailed explanations Don't you think it's better to fix the bug in the streams code? (Already explained in an other bug report about mysqlnd) BTW (regarding the above quirk): - for XP it's also a good idea to verify that there is a entry for IPv4 in the HOSTS file (or just deinstall IPv6) - and that's not working for e.g. Windows 7. Regards, Carsten ------------------------------------------------------------------------ [2010-02-08 11:39:51] ahar...@php.net Reopening per discussion in bug #50965. ------------------------------------------------------------------------ [2010-02-07 17:27:30] tony at marston-home dot demon dot co dot uk I have tried that, but it still doesn't work. ------------------------------------------------------------------------ [2010-02-07 17:15:21] paj...@php.net Comment out the IPv6 entries for localhost (see the other bogus reports for detailed explanations). ------------------------------------------------------------------------ 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/50953 -- Edit this bug report at http://bugs.php.net/?id=50953&edit=1