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

WordPress Trac noreply at wordpress.org
Fri Oct 18 17:37:49 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):

 It looks like [https://launchpad.net/ubuntu/saucy/+source/php5 Ubuntu
 13.10 shipped with PHP 5.5.3], so people are going to start running into
 this quite a bit more now.  Everything works, but all dev environments
 with WP_DEBUG on get "Deprecated: mysql_connect(): The mysql extension is
 deprecated and will be removed in the future: use mysqli or PDO instead in
 /path/to/wp/wp-includes/wp-db.php on line 1142"

 Nacin: What was the outcome of your talks at WordCamp Europe?

 Honestly, with the plugin existing and seemingly stable, I think it would
 be nice to go ahead and move to supporting mysqli as well as PDO.

 It also looks like there's a problem with the .7 patch.  The files wp-
 includes/wp-db-driver.interface.php, wp-includes/wp-db-driver-mysql.php,
 wp-includes/wp-db-driver-mysqli.php, and wp-includes/wp-db-driver-
 pdo_mysql.php all seem to have triple copies of the code in them.

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


More information about the wp-trac mailing list