[wp-trac] [WordPress Trac] #27933: MYSQL_NEW_LINK constant is not honored with MySQLi
WordPress Trac
noreply at wordpress.org
Mon Apr 21 05:08:46 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):
Attaching a new patch with the latest suggestions:
{{{#!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' );
}
}
}}}
Thanks for the coding standards link @pento, probably should have looked
at it first.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27933#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list