Edit report at https://bugs.php.net/bug.php?id=55463&edit=1
ID: 55463 Updated by: larue...@php.net Reported by: twentyafterfour at gmail dot com Summary: cli-server missing _SERVER[ REMOTE_ADDR ] -Status: Analyzed +Status: Closed Type: Bug Package: Built-in web server Operating System: Linux PHP Version: 5.4.0alpha3 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-08-22 11:55:33] larue...@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&revision=315278 Log: Fixed #55463 (cli-server missing _SERVER[REMOTE_ADDR]) ------------------------------------------------------------------------ [2011-08-22 11:28:55] larue...@php.net The following patch has been added/updated: Patch Name: bug55463.diff Revision: 1314012535 URL: https://bugs.php.net/patch-display.php?bug=55463&patch=bug55463.diff&revision=1314012535 ------------------------------------------------------------------------ [2011-08-19 16:17:33] twentyafterfour at gmail dot com Description: ------------ A loop over all available server variables produces just the following: _SERVER[DOCUMENT_ROOT] _SERVER[HTTP_HOST] _SERVER[HTTP_COOKIE] _SERVER[REQUEST_URI] _SERVER[REQUEST_METHOD] _SERVER[PHP_SELF] _SERVER[SCRIPT_FILENAME] _SERVER[REQUEST_TIME] _SERVER[argv] _SERVER[argc] REMOTE_* variables are missing and phpinfo() shows no traces of remote host information. Test script: --------------- <? echo isset($_SERVER['REMOTE_ADDR']) ? 'REMOTE_ADDR is set' : 'REMOTE_ADDR missing'; ?> Expected result: ---------------- REMOTE_ADDR is set Actual result: -------------- REMOTE_ADDR missing ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55463&edit=1