[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Thu Jan 30 13:07:14 UTC 2014
#21663: Use PDO or mysqli for MySQL queries when available
--------------------------------------------------+------------------
Reporter: scottconnerly | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.9
Component: Database | Version: 3.5
Severity: normal | Resolution:
Keywords: dev-feedback has-patch needs-testing | Focuses:
--------------------------------------------------+------------------
Changes (by pento):
* milestone: Future Release => 3.9
Comment:
attachment:21663.10.diff
* Updates attachment:21663.7.diff to apply cleanly against trunk
* Remove the temporary `E_DEPRECATED` check added in 3.8
* Fix a bug where `set_charset()` wouldn’t work for MySQL 5.0.0 -> 5.0.5
I’m a big fan of eventually moving to a driver-style WPDB, like
markoheijnen’s plugin, but I don’t think we’re ready for that, yet.
Changes to WPDB can have far reaching effects, so we need to move in baby
steps, and I like aaroncampbell’s approach as a first step.
This patch will need to be updated for #26847 and (hopefully) #5932, but
I’d like to see it get into 3.9 early, so we can give it as much soaking
time as possible. Changing over to mysqli will probably break any plugins
that call the `mysql_*()` functions directly, so we’ll need to give the
plugin authors as much time as possible to update their plugins.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:163>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list