Bug #60480 [Fbk->Asn]: SERVER_ADDR should be present in server variables
Edit report at https://bugs.php.net/bug.php?id=60480&edit=1
ID: 60480
User updated by: lolautruche at gmail dot com
Reported by: lolautruche at gmail dot com
Summary: SERVER_ADDR should be present in server variables
-Status: Feedback
+Status: Assigned
Type: Bug
Package: Built-in web server
PHP Version: 5.4.0RC3
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
Thanks ! Works smoothly :).
However, I still need to do $_SERVER['SERVER_ADDR'] =
gethostbyname($_SERVER['SERVER_NAME']) in order to get SERVER_ADDR, resulting
some overhead in the router script.
Previous Comments:
------------------------------------------------------------------------
[2011-12-10 03:21:39] laruence@php.net
Please try using this snapshot:
http://snaps.php.net/php5.4-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I added SERVER_NAME yesterday, since it is handy. you can use that instead :)
------------------------------------------------------------------------
[2011-12-09 13:46:19] lolautruche at gmail dot com
Description:
------------
Hi
Currently, SERVER_ADDR is absent from server variables, so that it needs to be
defined in a router script. IMHO this variable should be available out-of-the-
box.
Thanks !
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60480&edit=1
Thread (4 messages)