[wp-trac] [WordPress Trac] #21663: Use PDO for MySQL queries when PDO is available

WordPress Trac noreply at wordpress.org
Fri Jan 18 00:22:55 UTC 2013


#21663: Use PDO for MySQL queries when PDO is available
--------------------------------------------------+------------------
 Reporter:  scottconnerly                         |       Owner:
     Type:  task (blessed)                        |      Status:  new
 Priority:  normal                                |   Milestone:  3.6
Component:  Database                              |     Version:  3.5
 Severity:  normal                                |  Resolution:
 Keywords:  dev-feedback has-patch needs-testing  |
--------------------------------------------------+------------------

Comment (by bpetty):

 Apparently everyone seems to have gotten the impression that I'm
 suggesting we don't migrate to PDO/mysqli at all, so I just want to
 clarify that this is *not* the case at all. I like this patch, and I do
 know the mysql extension is deprecated in PHP 5.5, so this has to happen.

 To be perfectly clear, what I'm saying is that the patch needs to not
 default to PDO first if it's available *unless* the version of PHP being
 used is 5.5 or above, and in cases of PHP 5.4 and below, it should default
 to using the existing mysql extension it's using right now. In doing so,
 we give plugin authors who did incorrectly use raw mysql calls a chance of
 fixing their plugin before it breaks on every WordPress installation the
 second everyone upgrades to 3.6, and it also gives users of those plugins
 the time to perform their plugin updates appropriately as well.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21663#comment:59>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list