From: neon at neon-line dot net Operating system: FreeBSD 4.10 PHP version: 5.0.1 PHP Bug Type: Sockets related Bug description: IPv6 support broken
Description: ------------ Unable to connect to IPv6 addresses or hostnames pointing to an IPv6 address, even though IPv6 is properly configured. PHP has been configured with --enable-ipv6 option and phpinfo shows that it is indeed enabled. I checked with telnet utility that these hosts respond and with that they did. Reproduce code: --------------- fsockopen("[::1]",80); echo "--\n"; fsockopen("[fe80:1:1::1]",80); echo "--\n"; fsockopen("fe80:1:1::1",80); echo "--\n"; fsockopen("ipv6.host.name",80); Expected result: ---------------- -- -- -- Actual result: -------------- Warning: fsockopen(): php_network_getaddresses: gethostbyname failed Warning: fsockopen(): unable to connect to [::1]:80 (Unknown error) -- Warning: fsockopen(): php_network_getaddresses: gethostbyname failed Warning: fsockopen(): unable to connect to [fe80:1:1::1]:80 (Unknown error) -- Warning: fsockopen(): unable to connect to fe80:1:1::1:80 (Operation timed out) -- Warning: fsockopen(): php_network_getaddresses: gethostbyname failed Warning: fsockopen(): unable to connect to ipv6.host.name:80 (Unknown error) -- Edit bug report at http://bugs.php.net/?id=30057&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30057&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30057&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30057&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30057&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30057&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30057&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30057&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30057&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30057&r=support Expected behavior: http://bugs.php.net/fix.php?id=30057&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30057&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30057&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30057&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30057&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30057&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30057&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30057&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30057&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30057&r=mysqlcfg