[wp-trac] [WordPress Trac] #31644: mysqli_get_client_version in wp-db

WordPress Trac noreply at wordpress.org
Thu Mar 26 09:02:07 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 dd32):

 Replying to [comment:7 MattyRob]:
 > Please can I get a quick sanity check on this issue.
 > ...
 > Should the code not use $client_version = mysqli_get_server_info(
 $this->dbh ); for example?

 Unfortunately not, as for the connection to support the feature, it needs
 both Client and Server to support the feature being tested.

 However, what you have run into is a legitimate bug I think, `5.0.11` is
 the latest version of `mysqlnd` in existance, and is the same that's
 [https://github.com/php/php-src/blob/master/ext/mysqlnd/mysqlnd.h#L25
 currently in PHP trunk]. I'll leave the digging to @pento as to if it
 supports the features we need..

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


More information about the wp-trac mailing list