]> granicus.if.org Git - php/commitdiff
fix test
authorAndrey Hristov <andrey@php.net>
Fri, 12 Oct 2012 08:35:45 +0000 (10:35 +0200)
committerAndrey Hristov <andrey@php.net>
Fri, 12 Oct 2012 08:35:45 +0000 (10:35 +0200)
ext/mysqli/tests/mysqli_constants.phpt

index 613dddfc85d5ed4384c87c51ebe8970ea17d1acc..0f87187216fef057f338ca4480d13e7be6c63755 100644 (file)
@@ -125,6 +125,12 @@ require_once('skipifconnectfailure.inc');
                $expected_constants['MYSQLI_SERVER_QUERY_WAS_SLOW'] = true;
        }
 
+
+       /* First introduced in MySQL 6.0, backported to MySQL 5.5 */
+       if ($version >= 50606 || $IS_MYSQLND) {
+               $expected_constants['MYSQLI_SERVER_PUBLIC_KEY'] = true;
+       }
+
        if ($version > 50002) {
                $expected_constants = array_merge($expected_constants, array(
                        "MYSQLI_TYPE_NEWDECIMAL"        => true,