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

WordPress Trac noreply at wordpress.org
Tue Feb 25 15:58:50 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:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by nacin):

 [27257] additionally forces mysqli for development environments. This
 should increase testing during 3.9 beta.

 [attachment:21663.13.diff] adds a constant called USE_EXT_MYSQL. Rather
 than the more forward-thinking driver approach, this simply restricts it
 to applying to the enabling/disabling of ext/mysql.

 I actually first had it only allow for the disabling of ext/mysql via
 USE_EXT_MYSQL = false. USE_EXT_MYSQL = true wouldn't force ext/mysql on
 PHP 5.5. The patch does this, however, since it may be useful to force
 ext/mysql for development/testing purposes, and because it's inevitable
 this will break a PHP 5.5 site, so let's ensure we have easy recourse.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:195>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list