[wp-trac] [WordPress Trac] #27933: MYSQL_NEW_LINK constant is not honored with MySQLi

WordPress Trac noreply at wordpress.org
Mon Apr 21 07:03:02 UTC 2014


#27933: MYSQL_NEW_LINK constant is not honored with MySQLi
--------------------------+--------------------
 Reporter:  doublesharp   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9.1
Component:  Database      |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by doublesharp):

 Fourth time's the charm?

 {{{#!php
 if ( ! $new_link ) {
         if ( version_compare( phpversion(), '5.3.0', '>=' ) ) {
                 $host = "p:$host";
         } else {
                 _doing_it_wrong( 'wpdb::db_connect', __( 'Disabling
 MYSQL_NEW_LINK with MySQLi requires PHP 5.3 or later.' ), '3.9.1' );
         }
 }
 }}}

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


More information about the wp-trac mailing list