[wp-trac] [WordPress Trac] #36356: Function signature of wp_parse_url() does not match parse_url()

WordPress Trac noreply at wordpress.org
Mon Oct 3 22:43:09 UTC 2016


#36356: Function signature of wp_parse_url() does not match parse_url()
--------------------------------------+-----------------------------
 Reporter:  johnbillion               |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  4.7
Component:  HTTP API                  |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by peterwilsoncc):

 @jrf The `=== $url[0]` in that patch will throw a notice if an empty
 string is passed to the function, are you able to add a couple of invalid
 use cases while refining the tests? I think this has been in WP since
 forever and I didn't think to test it over the weekend.

 From rudimentary testing, placeholder schemes and hosts seem the most
 reliable across versions of PHP. Can they be used and unset generally?
 Version sniffing is proving unreliable.

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


More information about the wp-trac mailing list