[wp-trac] [WordPress Trac] #15402: Error suppression in wp-db is lame

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 12 10:40:15 UTC 2010


#15402: Error suppression in wp-db is lame
--------------------------+-------------------------------------------------
 Reporter:  westi         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1
Component:  Database      |     Version:  3.1
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by nacin):

 mysql_free_result() returns true on success, false on failure, and only
 emits a warning if called on a non-resource. A simple is_resource() check
 is thus enough to remove the error suppression there, as another type of
 resource should never get in there.

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


More information about the wp-trac mailing list