[wp-trac] [WordPress Trac] #49980: lift error suppression flag from parse_url function calls

WordPress Trac noreply at wordpress.org
Thu Apr 23 06:14:21 UTC 2020


#49980: lift error suppression flag from parse_url function calls
---------------------------+-----------------------------
 Reporter:  netpassprodsr  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:  has-patch
  Focuses:                 |
---------------------------+-----------------------------
 This issue deals with just one of the PHP functions referenced in #24780.
 Props to @howdy_mcgee for recent work with related PHP error suppression
 lifting (#49889)

 This issue focuses on occurrances of the parse_url() function.
 [[https://www.php.net/manual/en/function.parse-url.php#refsect1-function
 .parse-url-changelog|Research]] indicates that PHP version 5.3.3 removed
 the E_WARNING from cases where the URL parsing failed.
 Also, the latest WordPress release has 5.6.20 as the minimum required PHP
 version.
 This eliminates the purpose for error suppression on these function calls
 as there will never be one.

 I will attach a patch file for this ticket once the formal number has been
 assigned.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49980>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list