[wp-trac] [WordPress Trac] #20838: Don't populate $col_info in production
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 14 20:21:12 UTC 2012
#20838: Don't populate $col_info in production
-------------------------+---------------------
Reporter: GrahamKelly | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.5
Component: Database | Version: 3.3.2
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+---------------------
Comment (by nacin):
In [21511]:
{{{
#!CommitTicketReference repository="" revision="21511"
Eliminate error suppression for mysql_free_result() and only call it when
the result is actually a resource. Depending on the query, mysql_query()
can return a boolean rather than a resource, hence the original use of
error suppression.
Fixes a warning introduced in [21472] when calling mysql_free_result() was
moved to flush().
fixes #20838.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20838#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list