Package: php5-common
Version: 5.2.11.dfsg.1-2
Severity: important

after upgrading from lenny to squeeze php5 isn't able to include remote files 
via ipv6 (fsockopen). ipv6 networking is configured and working. 

for example if you use  

--------------------------------------8<-----------------------------------

include("http://ipv6host/test.php";); 

-------------------------------------->8-----------------------------------

php5 complains with the following error:

--------------------------------------8<-----------------------------------

warning: include(http://ipv6host/test.php) [function.include]: failed to open 
stream: operation failed in /var/www/dummy.php(1685) : eval()'d code on line 2. 
"

-------------------------------------->8-----------------------------------

using an ipv4 address works as expected.


quick test to reproduce this problem with 5.2.11.dfsg.1-2:

--------------------------------------8<-----------------------------------

php -r 'var_dump(fsockopen("[2001:1234:1234::1a]", 80));'

Warning: fsockopen(): unable to connect to [2001:1234:1234::1a]:80 (Unknown 
error) in Command line code on line 1
bool(false)

-------------------------------------->8-----------------------------------


working example with 5.2.6.dfsg.1-1+lenny4 

--------------------------------------8<-----------------------------------

php -r 'var_dump(fsockopen("[2001:1234:1234::1a]", 80));'
resource(4) of type (stream)

-------------------------------------->8-----------------------------------


this bug seems fixed in php 5.2.12, see http://bugs.php.net/bug.php?id=50214 
for more information.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-common depends on:
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  sed                           4.2.1-6    The GNU sed stream editor

Versions of packages php5-common recommends:
pn  php5-suhosin                  <none>     (no description available)

php5-common suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to