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

WordPress Trac noreply at wordpress.org
Thu Jan 17 17:48:37 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):

 It's pretty awesome how much everyone here raves about how WordPress
 maintains full compatibility and never removes old API, but when it comes
 down to things like this, everyone is like "screw them".

 What are we gaining by using PDO or mysqli in PHP 5.3 or 5.4 as opposed to
 using mysql? The answer is absolutely nothing. In fact, if this new code
 isn't extensively tested before release, we're actually just risking
 potential bugs (including possible SQL injection issues) with new changes
 that provide no additional benefits in PHP 5.4 and below. So why is it
 even being debated? We have the option of slowly rolling this out, and we
 should take advantage of that.

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


More information about the wp-trac mailing list