[wp-trac] [WordPress Trac] #31644: mysqli_get_client_version in wp-db
WordPress Trac
noreply at wordpress.org
Sun Mar 15 00:41:07 UTC 2015
#31644: mysqli_get_client_version in wp-db
--------------------------+-----------------------------
Reporter: filipac | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If you are checking the error logs (especially when running hhvm) you get
this error:
Warning: mysqli_get_client_version() expects exactly 0 parameters, 1 given
in
I would suggest to use the function without an argument as suggested on
the internet:
{{{
if ( $this->use_mysqli ) {
return mysqli_get_client_version()
>= 50503;
} else {
return mysql_get_client_version()
>= 50503;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31644>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list