#33477 [Opn->Bgs]: $_ENV['REMOTE_PORT'] not valid
| From: | sniper@php.net | Date: | Sun, 26 Jun 2005 10:51:14 +0000 |
| Subject: | #33477 [Opn->Bgs]: $_ENV['REMOTE_PORT'] not valid | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81020@lists.php.net to get a copy of this message | ||
ID: 33477
Updated by: sniper@php.net
Reported By: spiderman_gtp at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Network related
Operating System: Win2K AS
PHP Version: 5.0.4
New Comment:
If it's not set then it's not set by the webserver.
Not PHP problem since PHP only fills the $_ENV variable with the
environment variables which actually are SET.
Previous Comments:
------------------------------------------------------------------------
[2005-06-26 01:58:43] spiderman_gtp at hotmail dot com
Description:
------------
$_ENV['REMOTE_ADDR'] returns the correct value of the IP of the remote
user,
$_ENV['REMOTE_PORT'] generates:
Notice: Undefined index: REMOTE_PORT in ...
Reproduce code:
---------------
see description .. i also tried $HTTP_ENV ... and $_SERVER and none
seem to work
Expected result:
----------------
expected to return the remote users port number
Actual result:
--------------
Notice: Undefined index: REMOTE_PORT in ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33477&edit=1