Req #66208 [NEW]: PHP-FPM Bind to address
From: tronox at hotmail dot com
Operating system: Amazon AMI
PHP version: 5.5.6
Package: *Network Functions
Bug Type: Feature/Change Request
Bug description:PHP-FPM Bind to address
Description:
------------
While running multiple hosts on multiple ips:
I'm able to get a specific _SERVER["SERVER_ADDR"] for each host. However
when using functions such as
file_get_contents('example.com/whatismyip.php') it will always return
the main IP of the server rather then the IP in _SERVER["SERVER_ADDR"].
My request is that either the IP used for functions such as
file_get_contents is set to _SERVER["SERVER_ADDR"] or there be a setting
that can be passed into PHP or PHP-FPM so that the outgoing IP can be
set.
Seems that is _SERVER["SERVER_ADDR"] returns a specific IP that that
should be used as default for outgoing traffic.
Expected result:
----------------
_SERVER["SERVER_ADDR"] be used as the default IP/Interface for outgoing
PHP traffic.
Actual result:
--------------
_SERVER["SERVER_ADDR"] is ignored and the server's main IP is used
instead.
--
Edit bug report at https://bugs.php.net/bug.php?id=66208&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66208&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66208&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66208&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66208&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66208&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66208&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66208&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66208&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66208&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66208&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66208&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66208&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66208&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66208&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66208&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66208&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66208&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66208&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66208&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66208&r=mysqlcfg
Thread (12 messages)
- tronox at hotmail dot com
- requinix@php.netReq #66208 [Opn->Wfx]: PHP-FPM Bind to address
- tronox at hotmail dot comReq #66208 [Wfx]: PHP-FPM Bind to address
- requinix@php.netReq #66208 [Wfx]: PHP-FPM Bind to address
- tronox at hotmail dot comReq #66208 [Wfx]: PHP-FPM Bind to address
- tronox at hotmail dot comReq #66208 [Wfx]: PHP-FPM Bind to address
- requinix@php.netReq #66208 [Wfx]: PHP-FPM Bind to address
- tronox at hotmail dot comReq #66208 [Wfx]: PHP-FPM Bind to address
- requinix@php.netReq #66208 [Wfx->Opn]: PHP-FPM Bind to address
- tronox at hotmail dot comReq #66208 [Opn]: PHP-FPM Bind to address
- gabri dot ns at gmail dot comReq #66208 [Com]: PHP-FPM Bind to address
- daan at djunity dot nlReq #66208 [Com]: PHP-FPM Bind to address