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:
It was:
/* #undef HAVE_GETADDRINFO */
After I added
#define HAVE_GETADDRINFO 1
and removed
#define HAVE_GETHOSTBYNAME2 1
Everything worked just fine with those modifications, so after all it
is a bug in the configure script.
Previous Comments:
------------------------------------------------------------------------
[2004-09-11 18:35:52] [EMAIL PROTECTED]
grep HAVE_GETADDRINFO main/php_config.h
------------------------------------------------------------------------
[2004-09-11 11:50:50] neon at neon-line dot net
Configure command used:
./configure --disable-all --enable-ipv6 \ --with-apxs2=/path/to/apxs2
grep "IPv6" config.log
configure:16103: checking for IPv6 support
configure:17764: checking whether to enable IPv6 support
phpinfo:
IPv6 Support => enabled
I don't see much more that I could have done in order to enable the
IPv6 support.
Maybe the --disable-all statement causes this problem?
------------------------------------------------------------------------
[2004-09-11 11:37:04] [EMAIL PROTECTED]
Check your configure output and config.log for stuff related to IPv6;
it looks like PHP isn't actually using IPv6 at all.
(gethostbyname is IPv4; PHP would use getaddrinfo for IPv6)
------------------------------------------------------------------------
[2004-09-11 11:16:52] neon at neon-line dot net
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.
------------------------------------------------------------------------
[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');
------------------------------------------------------------------------
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/30057
--
Edit this bug report at http://bugs.php.net/?id=30057&edit=1