]> granicus.if.org Git - php/commitdiff
Fix inverted stristr() argument order in mysqli test
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 5 Jul 2018 19:25:09 +0000 (21:25 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 5 Jul 2018 19:25:21 +0000 (21:25 +0200)
ext/mysqli/tests/mysqli_stmt_get_result_non_select.phpt

index 658f7da77f5057d306addc293ab3d020062be60e..1cd2981ed28200cec04f10a9492e5e6ce3e100b4 100644 (file)
@@ -38,7 +38,7 @@ if (!function_exists('mysqli_stmt_get_result'))
                        $found = false;
                        foreach ($engines as $k => $engine)
                                foreach ($engine as $k => $v)
-                                       if (stristr('MyISAM', $v)) {
+                                       if (stristr($v, 'MyISAM')) {
                                                $found = true;
                                                break;
                                        }
@@ -92,4 +92,4 @@ if (!function_exists('mysqli_stmt_get_result'))
        require_once("clean_table.inc");
 ?>
 --EXPECT--
-done!
\ No newline at end of file
+done!