[wp-trac] [WordPress Trac] #21870: @ error control operator hides fatal error on mysql_fetch_object
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 11 15:42:00 UTC 2012
#21870: @ error control operator hides fatal error on mysql_fetch_object
--------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 1.5
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by nacin):
[attachment:21870.diff] avoids error suppression on mysql_fetch_object(),
mysql_num_fields(), mysql_fetch_field().
mysql_query() should additionally be good, because $this->dbh is
guaranteed to be a resource, I guess unless someone unset it (if the
connection fails, we bail in db_connect()). But touching that seems more
dangerous than these.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21870#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list