[wp-trac] [WordPress Trac] #43109: RegEx in parse_db_host() can cause notices and headers sent too early

WordPress Trac noreply at wordpress.org
Tue Jan 23 03:34:45 UTC 2018


#43109: RegEx in parse_db_host() can cause notices and headers sent too early
--------------------------+-----------------------
 Reporter:  gallerycy     |       Owner:  dd32
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.9.3
Component:  Database      |     Version:  4.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  new => accepted


Comment:

 From https://www.pcre.org/original/changelog.txt
 PCRE Version 4.0 (17-Feb-2003) added `(?P<name>..)` syntax.
 PCRE Version 7.0 (19-Dec-2006) added `(?<name>..)` syntax.

 Lets just update it to the first syntax, an extra character isn't going to
 cause harm :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43109#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list