andrey          Tue Feb 19 15:36:38 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/mysqli/tests   mysqli_constants.phpt 
  Log:
  Fix test
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_constants.phpt?r1=1.2.2.2&r2=1.2.2.3&diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_constants.phpt
diff -u php-src/ext/mysqli/tests/mysqli_constants.phpt:1.2.2.2 
php-src/ext/mysqli/tests/mysqli_constants.phpt:1.2.2.3
--- php-src/ext/mysqli/tests/mysqli_constants.phpt:1.2.2.2      Wed Oct 10 
10:13:47 2007
+++ php-src/ext/mysqli/tests/mysqli_constants.phpt      Tue Feb 19 15:36:38 2008
@@ -44,6 +44,8 @@
                "MYSQLI_TIMESTAMP_FLAG"                         => true,
                "MYSQLI_SET_FLAG"                                       => true,
                "MYSQLI_NUM_FLAG"                                       => true,
+               "MYSQLI_ENUM_FLAG"                                      => true,
+               "MYSQLI_BINARY_FLAG"                            => true,
                "MYSQLI_PART_KEY_FLAG"                          => true,
                "MYSQLI_GROUP_FLAG"                                     => true,
                "MYSQLI_TYPE_DECIMAL"                           => true,
@@ -90,10 +92,16 @@
                $version = 50007 + 1;
                $expected_constants['MYSQLI_OPT_NET_CMD_BUFFER_SIZE'] = true;
                $expected_constants['MYSQLI_OPT_NET_READ_BUFFER_SIZE'] = true;
+               $expected_constants['MYSQLI_DEBUG_TRACE_ENABLED'] = true;
+               
        } else {
                $version = mysqli_get_client_version();
        }
 
+       if (($version > 51122 && $version < 60000) || ($version > 60003) || 
$IS_MYSQLND) {
+               $expected_constants['MYSQLI_ON_UPDATE_NOW_FLAG'] = true;        
+       }
+
        if ($version > 50002) {
                $expected_constants = array_merge($expected_constants, array(
                        "MYSQLI_TYPE_NEWDECIMAL"        => true,
@@ -101,6 +109,10 @@
                ));
        }
 
+       if ($version > 50002 || $IS_MYSQLND) {
+               $expected_constants['MYSQLI_NO_DEFAULT_VALUE_FLAG'] = true;
+       }
+
        if ($version > 50003) {
                $expected_constants = array_merge($expected_constants, array(
                        "MYSQLI_STMT_ATTR_CURSOR_TYPE"          => true,

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to