ID: 30057 User updated by: neon at neon-line dot net Reported By: neon at neon-line dot net -Status: Feedback +Status: Open Bug Type: Sockets related Operating System: FreeBSD 4.10 PHP Version: 5.0.1 New Comment:
Warning: fsockopen(): unable to connect to tcp://::1:80 (Operation timed out) in /dev/php5-v6/test.php on line 2 Warning: fsockopen(): php_network_getaddresses: gethostbyname failed in /dev/php5-v6/test.php on line 3 Warning: fsockopen(): unable to connect to tcp://[::1]:80 (Unknown error) in /dev/php5-v6/test.php on line 3 Warning: stream_socket_client(): php_network_getaddresses: gethostbyname failed in /dev/php5-v6/test.php on line 4 Warning: stream_socket_client(): unable to connect to tcp://[::1]:80 (Unknown error) in /dev/php5-v6/test.php on line 4 To cut the above in short: no, none of those work. Previous Comments: ------------------------------------------------------------------------ [2004-09-10 23:56:41] [EMAIL PROTECTED] Do any of these work? fsockopen('tcp://::1', 80); fsockopen('tcp://[::1]', 80); stream_socket_client('tcp://[::1]:80'); ------------------------------------------------------------------------ [2004-09-10 22:18:48] neon at neon-line dot net 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 this bug report at http://bugs.php.net/?id=30057&edit=1