Author: uwendel
Date: 2007-07-03 15:29:59 +0200 (Tue, 03 Jul 2007)
New Revision: 595
Modified:
trunk/tests/ext/mysqli/connect.inc
Log:
Adding new variable to be able to write tests for certain mysqlnd versions.
Modified: trunk/tests/ext/mysqli/connect.inc
===================================================================
--- trunk/tests/ext/mysqli/connect.inc 2007-07-03 10:55:00 UTC (rev 594)
+++ trunk/tests/ext/mysqli/connect.inc 2007-07-03 13:29:59 UTC (rev 595)
@@ -21,5 +21,14 @@
((1 == getenv("MYSQL_TEST_EXPERIMENTAL")) ? true : false) :
false;
- $IS_MYSQLND = stristr(mysqli_get_client_info(), "mysqlnd");
+ $IS_MYSQLND = stristr(mysqli_get_client_info(), "mysqlnd");
+ if (!$IS_MYSQLND) {
+ $MYSQLND_VERSION = NULL;
+ } else {
+ if (preg_match('@Revision:\s+(\d+)\s*\$@ism', mysqli_get_client_info(), $matches)) {
+ $MYSQLND_VERSION = (int)$matches[1];
+ } else {
+ $MYSQLND_VERSION = -1;
+ }
+ }
?>
\ No newline at end of file
| Thread |
|---|
| • PHP mysqlnd svn commit: r595 - trunk/tests/ext/mysqli | uwendel | 3 Jul |