[wp-trac] [WordPress Trac] #31644: mysqli_get_client_version in wp-db
WordPress Trac
noreply at wordpress.org
Thu Mar 26 10:06:49 UTC 2015
#31644: mysqli_get_client_version in wp-db
--------------------------+-----------------------
Reporter: filipac | Owner: pento
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.2
Component: Database | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Comment (by MattyRob):
I guess this is an issue because we are tring to be function consistent
between mysqli and mysql but unfortunately the functions don't work the
same or maybe don't exist. How about accepting that limitation and
documenting it:
{{{
if ( $this->use_mysqli ) {
// using mysqli allows direct comparison of the client mysqldn
verison
return mysqli_get_client_version( $this->dbh ) >= 50503;
} else {
// using mysql fall back functions
return version_compare( mysql_get_client_info(), '5.5.3', '>=' );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31644#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list