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

WordPress Trac noreply at wordpress.org
Sat Feb 22 01:19:59 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 pento):

 Replying to [comment:185 markoheijnen]:
 > Your last changes will not work since use_mysqli is a private property.

 Are you referring to the unit test? It does work, because of
 `wpdb::__get()`.

 > Also the patch is not backwards compatible when people use socket
 connections and it's not the default one in php.ini. See
 https://github.com/markoheijnen/wp-db-
 driver/commit/ac7700d4eb20d05dd91edf0ead63727153bb7e12.

 Good catch, I'll have a play around with this.

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


More information about the wp-trac mailing list