[wp-trac] [WordPress Trac] #10536: errors surfacing when using set_error_handler
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 2 14:32:32 UTC 2009
#10536: errors surfacing when using set_error_handler
------------------------------+---------------------------------------------
Reporter: AaronAsAChimp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Warnings/Notices | Version:
Severity: normal | Keywords:
------------------------------+---------------------------------------------
So, I've been getting some strange errors surfacing while developing a
plugin. Three errors along the lines of "mysql_free_result(): supplied
argument is not a valid MySQL result resource."
They seem to be normally suppressed, but surface when using
set_error_handler(), and only when trying to create a table. It appears
that in "wp-includes/wp-db.php" that the result of the query isn't being
checked before being passed to the MySQL functions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10536>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list