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: Open +Status: Analyzed Type: Bug Package: Built-in web server Operating System: Linux PHP Version: 5.4.0alpha3 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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