php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55463 cli-server missing _SERVER[ REMOTE_ADDR ]
Submitted: 2011-08-19 16:17 UTC Modified: 2011-08-22 11:55 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: twentyafterfour at gmail dot com Assigned: laruence
Status: Closed Package: Built-in web server
PHP Version: 5.4.0alpha3 OS: Linux
Private report: No CVE-ID:
 [2011-08-19 16:17 UTC] 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

Patches

bug55463.diff (last revision 2011-08-22 11:28 UTC) by laruence@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-22 11:28 UTC] laruence@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-22 11:29 UTC] laruence@php.net
-Status: Open +Status: Analyzed
 [2011-08-22 11:55 UTC] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=315278
Log: Fixed #55463 (cli-server missing _SERVER[REMOTE_ADDR])
 [2011-08-22 11:55 UTC] laruence@php.net
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: laruence
 [2011-08-22 11:55 UTC] laruence@php.net
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.


 [2012-04-18 09:49 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1e0e85ec1a7613623757ee5df52a322e5d8c3fad
Log: Fixed #55463 (cli-server missing _SERVER[REMOTE_ADDR])
 [2012-07-24 23:40 UTC] rasmus@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1e0e85ec1a7613623757ee5df52a322e5d8c3fad
Log: Fixed #55463 (cli-server missing _SERVER[REMOTE_ADDR])
 [2013-11-17 09:36 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1e0e85ec1a7613623757ee5df52a322e5d8c3fad
Log: Fixed #55463 (cli-server missing _SERVER[REMOTE_ADDR])
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 15:02:26 2014 UTC