php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #55508 listen and listen.allowed_clients should take IPv6 addresses.
Submitted: 2011-08-25 15:06 UTC Modified: 2014-10-03 09:45 UTC
Votes:13
Avg. Score:4.8 ± 0.6
Reproduced:12 of 12 (100.0%)
Same Version:8 (66.7%)
Same OS:8 (66.7%)
From: josef at ilait dot se Assigned: fat
Status: Closed Package: FPM related
PHP Version: 5.5 OS: Linux
Private report: No CVE-ID:
 [2011-08-25 15:06 UTC] josef at ilait dot se
Description:
------------
---
From manual page: http://www.php.net/install.fpm.configuration
---

The documentation clearly states that listen and listen.allowed_clients does not 
allow IPv6 addresses to be entered.

Expected result:
----------------
Be able to listen to IPv6 addresses, and allow IPv6 addresses.

Actual result:
--------------
The process does not start when entering a IPv6 address.

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-25 16:06 UTC] fat@php.net
-Assigned To: +Assigned To: fat
 [2013-05-19 16:52 UTC] brunofr at ioda dot net
Still saw with php 5.4.15

the apache & common uri notation [::1]:9000 is transformed to 
ERROR] invalid port value ':1]:9000'

Also trying to use localhost which resolve by default to ::1
[NOTICE] address 'localhost' resolved as 127.0.0.1
 [2013-07-22 15:36 UTC] albertcasademont at gmail dot com
Same here, would be nice to have ipv6 support in php-fpm. Thanks!
 [2013-11-01 10:00 UTC] sjon at hortensius dot net
In php-5.5.5 this still doesn't work; maybe update the version to reflect this. Listening on * wont listen on ipv6 either
 [2013-11-01 10:42 UTC] maarten@php.net
-PHP Version: 5.3.8 +PHP Version: 5.5
 [2013-11-01 10:42 UTC] maarten@php.net
Doesn't work indeed, so updated to current branch.
 [2014-01-01 00:08 UTC] pgnet dot dev+php55508 at gmail dot com
just fyi, current documentation @

http://www.php.net/manual/en/install.fpm.configuration.php

no longer even expicitly states anything about IPv6 -- it completely fails to make any mention of it whatsoever.

The listen directive does state "Valid syntaxes are: 'ip.add.re.ss:port', 'port', '/path/to/unix/socket'", implying no IPv6 support

fwiw, my php -> PHP 5.5.8-dev (cli) (built: Dec 30 2013 18:36:38)

+1 on the "Expected Result" above ^^^
 [2014-05-13 14:07 UTC] Sjon at hortensius dot net
Fwiw; I just noticed a patch has already been created; it would be very nice if this could be pulled by the php devs

https://github.com/php/php-src/pull/631
 [2014-10-03 09:45 UTC] tyrael@php.net
-Status: Assigned +Status: Closed
 [2014-10-03 09:45 UTC] tyrael@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Mon Aug 21 16:01:42 2017 UTC