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

WordPress Trac noreply at wordpress.org
Thu Jan 10 01:03:57 UTC 2013


#21663: Use PDO for MySQL queries when PDO is available
------------------------------------+------------------------------
 Reporter:  scottconnerly           |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Database                |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:33 kurtpayne]:
 > How did you encounter this?  [http://php.net/manual/en/pdo.errorinfo.php
 PDO::errorInfo] should always return a 3 element array.

 Just applied the patch and saw a lot of these notices in the admin and on
 the front-end.

 PHP 5.2.14 on Windows. This is what `var_dump( $error )` shows:
 {{{
 array(1) { [0]=> string(5) "00000" }
 }}}

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


More information about the wp-trac mailing list