Bug #77482 [NEW]: Wont bind to IPv4 if IPv6 enabled
| From: | php at darkain dot com | Date: | Thu, 17 Jan 2019 19:34:39 +0000 |
| Subject: | Bug #77482 [NEW]: Wont bind to IPv4 if IPv6 enabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-219042@lists.php.net to get a copy of this message | ||
From: php at darkain dot com
Operating system: FreeBSD
PHP version: 7.3.1
Package: FPM related
Bug Type: Bug
Bug description:Wont bind to IPv4 if IPv6 enabled
Description:
------------
1) Create a bare FreeBSD jail
2) Inside of jail, run "pkg install php73"
3) Change /usr/local/etc/php-fpm.d/www.conf to "listen = 9000"
4) Run "service php-fpm onestart" to start the PHP FPM daemon
PHP service is now running, but only listening on IPv6:9000, not
IPv4:9000.
Expected result:
----------------
Listening on both IPv4 and IPv6
Actual result:
--------------
root@php-test:~ # sockstat -l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN
ADDRESS
www php-fpm 37643 5 tcp6 *:9000 *:*
www php-fpm 37642 5 tcp6 *:9000 *:*
root php-fpm 37641 7 tcp6 *:9000 *:*
(note the pack of tcp4 in PROTO)
--
Edit bug report at https://bugs.php.net/bug.php?id=77482&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77482&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77482&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77482&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77482&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77482&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77482&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77482&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77482&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77482&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77482&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77482&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77482&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77482&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77482&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77482&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77482&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77482&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77482&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77482&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77482&r=mysqlcfg