List:Commits« Previous MessageNext Message »
From:uwendel Date:July 5 2007 2:33pm
Subject:PHP mysqlnd svn commit: r650 - trunk/tests/ext/mysqli
View as plain text  
Author: uwendel
Date: 2007-07-05 16:33:00 +0200 (Thu, 05 Jul 2007)
New Revision: 650

Modified:
   trunk/tests/ext/mysqli/mysqli_constants.phpt
Log:
The client version not the server version determines which constants are available. 


Modified: trunk/tests/ext/mysqli/mysqli_constants.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_constants.phpt	2007-07-05 14:25:49 UTC (rev 649)
+++ trunk/tests/ext/mysqli/mysqli_constants.phpt	2007-07-05 14:33:00 UTC (rev 650)
@@ -80,7 +80,11 @@
     if ($IS_MYSQLND && defined('MYSQLI_OPT_INT_AND_YEARS_AS_INT'))
         $expected_constants['MYSQLI_OPT_INT_AND_YEARS_AS_INT'] = true;
     
-    $version = mysqli_get_server_version($link);    
+    if ($IS_MYSQLND) {
+        $version = 50007 + 1;
+    } else {
+        $version = mysqli_get_client_version();
+    }
     
     if ($version > 50002) {
         $expected_constants = array_merge($expected_constants, array(

Thread
PHP mysqlnd svn commit: r650 - trunk/tests/ext/mysqliuwendel5 Jul