[wp-trac] [WordPress Trac] #23085: Calling $wpdb->query() when no connection exists causes mysql_error() to throw an error
WordPress Trac
noreply at wordpress.org
Sun Jan 20 09:33:20 UTC 2013
#23085: Calling $wpdb->query() when no connection exists causes mysql_error() to
throw an error
------------------------------------+------------------------------
Reporter: mbijon | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 3.5
Severity: minor | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------------------
Changes (by mbijon):
* severity: normal => minor
Comment:
The setup I tested on was stock. And I'm not able to reproduce those
errors on anything but the old laptop that I was using over the holiday.
Then I updated the XAMPP install on that laptop and the problem went away.
It's likely specific to that version of PHP or MySQL. Here's the before &
after phpinfo's showing what versions were runing:
https://gist.github.com/4575935
I've never seen a MySQL resource id less than 1, but you're right about
is_resource(). New patch using that is coming. We may want to include it
just in case there's a bug in a specific version of PHP or mysql_connect.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23085#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list