ID:               42094
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fushimi at rep dot fielding dot nec dot co dot jp
-Status:           Open
+Status:           Feedback
-Bug Type:         *General Issues
+Bug Type:         IIS related
 Operating System: Windows 2000
 PHP Version:      5.2.3
 New Comment:

Does it show up in $_SERVER['REMOTE_ADDR'] ??


Previous Comments:
------------------------------------------------------------------------

[2007-07-25 07:53:25] fushimi at rep dot fielding dot nec dot co dot jp

Description:
------------
I am evaluating the newest PHP 5.2.3, in relation with my current PHP
5.1.2.
So, when I tried to get the remote IP using getenv(“REMOTE_ADDR”), I
obtained the following results:

PHP 5.2.3 => return 0.0.0.0
PHP 5.1.2 => return 192.168.1.1

PHP in ISAPI mode.


Reproduce code:
---------------
$ip = getenv("REMOTE_ADDR");
echo "IP Address ....: ".$ip;


Expected result:
----------------
IP Address ....: 192.168.1.1

Actual result:
--------------
IP Address ....: 0.0.0.0


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42094&edit=1

Reply via email to