ID:               50214
 User updated by:  phil at lavin dot me dot uk
 Reported By:      phil at lavin dot me dot uk
-Status:           Feedback
+Status:           Open
 Bug Type:         Sockets related
 Operating System: Linux 2.6.30
 PHP Version:      5.2.11
 New Comment:

Having just downloaded and compiled 5.2.11 (just using ./configure with
no options)...

p...@127dot0dot0dot1:~/php5/php-5.2.11$ sapi/cli/php -r
'var_dump(fsockopen("[2610:1e8:2900:a::8]", 6667));'

Warning: fsockopen(): unable to connect to [2610:1e8:2900:a::8]:6667
(Unknown error) in Command line code on line 1
bool(false)
p...@127dot0dot0dot1:~/php5/php-5.2.11$


Phil


Previous Comments:
------------------------------------------------------------------------

[2009-11-18 18:09:40] gavinspearhead at gmail dot com

I have the same problem with php 5.2.10 on ubuntu 9.10.

php details.
PHP 5.2.10-2ubuntu6.1 with Suhosin-Patch 0.9.7 (cli) (built: Oct 29
2009 19:22:53) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo

I posted a bugreport on ubuntu launchpad already: 
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/483315

------------------------------------------------------------------------

[2009-11-18 18:03:50] j...@php.net

It's properly configured if it's not disabled in configure line with
--disable-ipv6 option. f.e.:

# rm -f config.cache && ./configure && make
# sapi/cli/php -r 'var_dump(fsockopen("[2610:1e8:2900:a::8]", 6667));'
Warning: fsockopen(): unable to connect to [2610:1e8:2900:a::8]:6667
(Network is unreachable)..


------------------------------------------------------------------------

[2009-11-18 17:05:44] phil at lavin dot me dot uk

Can you please define 'properly' so that I may contact the package
maintainers of PHP for Debian, FreeBSD and RHEL to notify them that they
are doing something wrong.

I would have thought that, considering phpinfo reports that IPv6 is
enabled in the php compile on every server, it should work correctly.

------------------------------------------------------------------------

[2009-11-18 17:00:20] j...@php.net

When compiled properly 5.2.11 will give what I got. 

------------------------------------------------------------------------

[2009-11-18 16:58:27] phil at lavin dot me dot uk

I have just tested it on 5 different servers running 5.2.11. All give
the same error, e.g.

p...@server:~$ php -r 'var_dump(fsockopen("[2610:1e8:2900:a::8]",
6667));'

Warning: fsockopen(): unable to connect to [2610:1e8:2900:a::8]:6667
(Unknown error) in Command line code on line 1
bool(false)
You have new mail in /var/mail/phil
p...@server:~$

This is regardless of whether they do or don't have IPv6 support.

A server running 5.2.9 gives what you got:

p...@server1:~$ php -r 'var_dump(fsockopen("[2610:1e8:2900:a::8]",
6667));'

Warning: fsockopen(): unable to connect to [2610:1e8:2900:a::8]:6667
(Network is unreachable) in Command line code on line 1
bool(false)
p...@server1:~$

Phil

------------------------------------------------------------------------

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/50214

-- 
Edit this bug report at http://bugs.php.net/?id=50214&edit=1

Reply via email to