[wp-trac] [WordPress Trac] #13853: PHP Notice from undefined offset in revisions compare

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 12 15:25:30 UTC 2010


#13853: PHP Notice from undefined offset in revisions compare
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  westi    
     Type:  defect (bug)  |      Status:  accepted 
 Priority:  normal        |   Milestone:  3.0      
Component:  Revisions     |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * keywords:  has-patch reporter-feedback => has-patch


Comment:

 See `revisions.png`.  I'm not sure exactly how to reproduce, but it may be
 comparing a blank line with 2 or more.

 Nevertheless, the logic error in the code is plain: it assumes an array
 index is defined without warrant.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13853#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list