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

WordPress Trac noreply at wordpress.org
Thu Mar 26 10:11:05 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 pento):

 Replying to [comment:11 dd32]:
 > Ugh, I missed that `ext/mysql` also used `mysqlnd`. I guess that means
 we'd have to check the [https://php.net/manual/en/mysqlnd.config.php ini
 config settings]?

 That assumes that `mysqlnd` is the driver for all extensions - you can
 choose which extensions use `mysqlnd`. :-)

 @MattyRob: Both functions return the same number, just in a different
 format. The problem is that `mysqlnd`'s version numbers don't match
 MySQL's, so we need to detect when `mysqlnd` is being used.

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


More information about the wp-trac mailing list