|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
30 - 8 = ?
Subscribe to this entry?

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

See also and

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-18 08:30 UTC]
-Status: Open +Status: Feedback
 [2019-08-18 08:30 UTC]
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-2021 The PHP Group
All rights reserved.
Last updated: Mon Mar 01 11:01:23 2021 UTC