[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Wed Nov 20 23:20:27 UTC 2013
#21663: Use PDO or mysqli for MySQL queries when available
--------------------------------------------------+------------------
Reporter: scottconnerly | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.8
Component: Database | Version: 3.5
Severity: normal | Resolution:
Keywords: dev-feedback has-patch needs-testing |
--------------------------------------------------+------------------
Comment (by aaroncampbell):
[attachment:21663.2.diff] is a quick replacement of all mysql_* functions
with their mysqli_* counterparts. It only does this if mysqli_connect()
exists and PHP >= 5.5. There is a filter called `use_mysqli` to override.
There are a couple issues still, and that is what to do with
MYSQL_NEW_LINK and MYSQL_CLIENT_FLAGS. We default new link to true, which
is what mysqli does by default, but I'm not sure that MySQLi has an
override. I also didn't have time to dig into the various possible flags
yet, but I wanted to get the patch up so people could play with it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21663#comment:135>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list