[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:08:05 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):

 For others curious, the core change is in `substr()` and was a documented
 PHP8 change https://php.watch/versions/8.0/substr-out-of-bounds

 {{{
 substr( '', 1 )

 PHP <=7.4: false
 PHP >=8.0: ''
 }}}

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


More information about the wp-trac mailing list