[wp-trac] [WordPress Trac] #10536: errors surfacing when using set_error_handler
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 24 10:06:12 UTC 2009
#10536: errors surfacing when using set_error_handler
------------------------------+---------------------------------------------
Reporter: AaronAsAChimp | Owner: westi
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.0
Component: Warnings/Notices | Version:
Severity: normal | Keywords: reporter-feedback
------------------------------+---------------------------------------------
Changes (by westi):
* keywords: has-patch => reporter-feedback
Comment:
Looking at the code in {{{$wpdb}}} and php docs we should only every get
false returned from {{{mysql_query}}} if there is an error.
In this case this code will mean we never reach the branch the patch
changes:
{{{
if ( $this->last_error = mysql_error($this->dbh) ) {
$this->print_error();
return false;
}
}}}
Do you know what the query was that produced this notice?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10536#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list