Bug #77722 [Opn->Ver]: Incorrect IP set to $_SERVER['REMOTE_ADDR'] on the localhost
| From: | cmb@php.net | Date: | Mon, 11 Mar 2019 11:37:58 +0000 |
| Subject: | Bug #77722 [Opn->Ver]: Incorrect IP set to $_SERVER['REMOTE_ADDR'] on the localhost | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219907@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77722&edit=1
ID: 77722
Updated by: cmb@php.net
Reported by: josef dot sabl at gmail dot com
Summary: Incorrect IP set to $_SERVER['REMOTE_ADDR'] on the
localhost
-Status: Open
+Status: Verified
Type: Bug
Package: Built-in web server
Operating System: Windows
PHP Version: 7.3.3
Block user comment: N
Private report: N
New Comment:
I can confirm the erroneous behavior. It has been introduced with
commit 9501304[1].
[1] <http://git.php.net/?p=php-src.git;a=commit;h=95013042bf85ce1f52e476c5cc301faa97f52a72>
Previous Comments:
------------------------------------------------------------------------
[2019-03-10 20:34:08] josef dot sabl at gmail dot com
Description:
------------
If run as
php.exe -S localhost:88 the $_SERVER['REMOTE_ADDR'] ===
'[::1]' with the ::1 enclosed in brackets which is invalid and doesn't work
with inet_pton
More info here:
https://github.com/nette/http/issues/152
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77722&edit=1