Bug #60480 [Asn->Wfx]: SERVER_ADDR should be present in server variables
| From: | laruence@php.net | Date: | Sat, 10 Dec 2011 15:55:14 +0000 |
| Subject: | Bug #60480 [Asn->Wfx]: SERVER_ADDR should be present in server variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165795@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60480&edit=1
ID: 60480
Updated by: laruence@php.net
Reported by: lolautruche at gmail dot com
Summary: SERVER_ADDR should be present in server variables
-Status: Assigned
+Status: Wont fix
Type: Bug
Package: Built-in web server
PHP Version: 5.4.0RC3
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
okey, since there is no a handy value of that, won't fix now ~
Previous Comments:
------------------------------------------------------------------------
[2011-12-10 14:28:44] lolautruche at gmail dot com
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.
------------------------------------------------------------------------
[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