php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78427 IPv6 brackets
Submitted: 2019-08-18 08:28 UTC Modified: 2019-08-18 08:38 UTC
From: php at achterstraat dot com Assigned:
Status: Open Package: Variables related
PHP Version: 7.3.7 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-08-18 08:28 UTC] php at achterstraat dot com
Description:
------------
For IPv6 in $_SERVER['REMOTE_ADDR'] returns '[::1]' again, instead of expected '::1'

See also https://bugs.php.net/bug.php?id=76919 and https://bugs.php.net/bug.php?id=77722

Expected result:
----------------
::1

Actual result:
--------------
[::1]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-18 08:30 UTC] nikic@php.net
-Status: Open +Status: Feedback
 [2019-08-18 08:30 UTC] nikic@php.net
Which SAPI are you using?
 [2019-08-18 08:38 UTC] php at achterstraat dot com
-Status: Feedback +Status: Open -PHP Version: 7.3.9RC1 +PHP Version: 7.3.7
 [2019-08-18 08:38 UTC] php at achterstraat dot com
Using litespeed, correct version is 7.3.7. instead of 7.3.9
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 16:01:42 2019 UTC