WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #41722, comment 9


Ignore:
Timestamp:
08/28/2017 06:45:53 PM (4 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41722, comment 9

    v1 v2  
    1 ...
     1Regarding the IPv4 case, it looks like we could parse {{{'localhost:/tmp/mysql.sock'}}} with:
     2
     3{{{
     4  $pattern = '#^(?:\[)?(?<host>[^:^/]+)(?::(?<port>[\d]+))?(?::(?<socket>/.+))?#';
     5}}}
     6
     7but we might look into that further. The above tests run successfully through this pattern.
     8
     9