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

WordPress Trac noreply at wordpress.org
Fri Jun 28 21:12:10 UTC 2013


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

Comment (by knutsp):

 The plugin now works also without PDO loaded. Nice!

 I suggest that PDO is the first priority only for PHP >= 5.4. For PHP <
 5.4 I suggest mysql has priority, then PDO as second. Don't change a
 winning team, and don't fix what isn't broken or not even undesired.

 For PHP 5.2 the stability of PDO should be examined. May be prefer mysqli
 over PDO in case there is no mysql extension.

 I any case, this task should enable the future WordPress to run on a PHP
 without the mysql extension, regardless of PHP version.

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


More information about the wp-trac mailing list