[php-maint] Bug#890266: php5-common: 0050-Detect-invalid-port-in-xp_socket-parse-ip-address.patch incomplete

jack debian at jack.fr.eu.org
Wed Mar 28 20:42:28 UTC 2018

Source: php5
Version: 5.6.33+dfsg-0+deb8u1
Followup-For: Bug #890266

Dear Maintainer,

I confirm the existence of this bug

The following snippet triggers the issue:

On php 5.6.30+dfsg-0+deb8u1, the call is a success
On php 5.6.33+dfsg-0+deb8u1:
PHP Warning:  stream_socket_client(): unable to connect to tcp://localhost:6379/ (Failed to parse address "localhost:6379/") in /tmp/test.php on line 3

The '/' behavior seems to be a long known trick, used by many libs etc (which are broken with the 5.6.33 release), despite the absence of official documentation:

Thanks for maintaining,

-- System Information:
Debian Release: 9.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/das

More information about the pkg-php-maint mailing list