Bug #65962 [Opn->Nab]: The $_SERVER['REMOTE_ADDR'] contains the IP in the IPv6 format.
| From: | johannes@php.net | Date: | Thu, 24 Oct 2013 18:35:21 +0000 |
| Subject: | Bug #65962 [Opn->Nab]: The $_SERVER['REMOTE_ADDR'] contains the IP in the IPv6 format. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182453@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65962&edit=1
ID: 65962
Updated by: johannes@php.net
Reported by: aceton at peroxid dot hu
Summary: The $_SERVER['REMOTE_ADDR'] contains the IP in the
IPv6 format.
-Status: Open
+Status: Not a bug
Type: Bug
Package: Variables related
Operating System: Windows 7 x64
PHP Version: 5.5.5
Block user comment: N
Private report: N
New Comment:
$_SERVER['REMOTE_ADDR'] contains what your webserver reports. PHP doesn't care. Your
webserver reports what is actually used.
Previous Comments:
------------------------------------------------------------------------
[2013-10-24 18:25:57] aceton at peroxid dot hu
Description:
------------
The $_SERVER['REMOTE_ADDR'] contains the IP in IPv6 format. I'm using Aprelium's
Abyss WebServer X1. With older versions of PHP(5.4.*, 5.3.*), this global value is in IPv4 format.
Test script:
---------------
$ip = $_SERVER['REMOTE_ADDR'];
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65962&edit=1