]> granicus.if.org Git - php/commitdiff
fix the test
authorAndrey Hristov <andrey@php.net>
Wed, 29 Sep 2010 11:40:57 +0000 (11:40 +0000)
committerAndrey Hristov <andrey@php.net>
Wed, 29 Sep 2010 11:40:57 +0000 (11:40 +0000)
ext/mysqli/tests/mysqli_stmt_num_rows.phpt

index 28ee64fd51e309077d43ad8b5d370e02103762b2..0a21bb54712c65283270e3850ab5497b3733d747 100644 (file)
@@ -27,17 +27,17 @@ require_once('skipifconnectfailure.inc');
        function func_test_mysqli_stmt_num_rows($stmt, $query, $expected, $offset) {
 
                if (!mysqli_stmt_prepare($stmt, $query)) {
-                       printf("[%03d] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_error($stmt));
+                       printf("[%03d] [%d] %s\n", $offset, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
                        return false;
                }
 
                if (!mysqli_stmt_execute($stmt)) {
-                       printf("[%03d] [%d] %s\n", $offset + 1, mysqli_errno($stmt), mysqli_error($stmt));
+                       printf("[%03d] [%d] %s\n", $offset + 1, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
                        return false;
                }
 
                if (!mysqli_stmt_store_result($stmt)) {
-                       printf("[%03d] [%d] %s\n", $offset + 2, mysqli_errno($stmt), mysqli_error($stmt));
+                       printf("[%03d] [%d] %s\n", $offset + 2, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
                        return false;
                }