[wp-trac] [WordPress Trac] #53278: [PHP 8] RSS Widget has infinite loop for instnaces with an undefined URL.

WordPress Trac noreply at wordpress.org
Wed May 26 06:48:31 UTC 2021


#53278: [PHP 8] RSS Widget has infinite loop for instnaces with an undefined URL.
---------------------------+---------------------
 Reporter:  peterwilsoncc  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.8
Component:  Widgets        |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  php8           |     Focuses:
---------------------------+---------------------

Comment (by dd32):

 This while loop is also in `wp_widget_rss_output()`.

 At the most basic just prefixing a boolean `$url` check would probably do
 - [attachment:"53278.diff"].

 Looks like SimplePie might also be affected by the change in PHP behaviour
 due to it's strict type check
 {{{
 ./SimplePie/IRI.php:916: if (($port = substr($remaining, $port_start + 1))
 === false)
 }}}

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


More information about the wp-trac mailing list