Edit report at https://bugs.php.net/bug.php?id=60480&edit=1
ID: 60480 Updated by: larue...@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] larue...@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