summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_stmt_reset.phpt
diff options
context:
space:
mode:
authorSergei Morozov <morozov@tut.by>2017-10-29 12:16:56 -0700
committerSara Golemon <pollita@php.net>2018-02-10 10:40:47 -0500
commit1c393e95025347eaa688c38f723308031c028559 (patch)
tree2b9ceeca273ba67435868ca432f68fa5aa560b7d /ext/mysqli/tests/mysqli_stmt_reset.phpt
parent70fec8a1cc0efbc36e4d302d280f2f08ab05bab6 (diff)
downloadphp-git-1c393e95025347eaa688c38f723308031c028559.tar.gz
[Bug 75448] In case of failure, mysqli::prepare() returns NULL instead of FALSE
Diffstat (limited to 'ext/mysqli/tests/mysqli_stmt_reset.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_stmt_reset.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_reset.phpt b/ext/mysqli/tests/mysqli_stmt_reset.phpt
index d731da2f5e..b7ec4e3ed7 100644
--- a/ext/mysqli/tests/mysqli_stmt_reset.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_reset.phpt
@@ -30,8 +30,8 @@ require_once('skipifconnectfailure.inc');
if (!$stmt = mysqli_stmt_init($link))
printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- if (NULL !== ($tmp = mysqli_stmt_reset($stmt)))
- printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
+ if (false !== ($tmp = mysqli_stmt_reset($stmt)))
+ printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
if (true !== ($tmp = mysqli_stmt_prepare($stmt, 'SELECT id FROM test')))
printf("[005] Expecting boolean/true, got %s/%s, [%d] %s\n",
@@ -93,8 +93,8 @@ require_once('skipifconnectfailure.inc');
mysqli_stmt_close($stmt);
- if (NULL !== ($tmp = mysqli_stmt_reset($stmt)))
- printf("[021] Expecting NULL, got %s/%s\n");
+ if (false !== ($tmp = mysqli_stmt_reset($stmt)))
+ printf("[021] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
mysqli_close($link);
print "done!";
@@ -109,4 +109,4 @@ Warning: mysqli_stmt_reset(): invalid object or resource mysqli_stmt
int(1)
Warning: mysqli_stmt_reset(): Couldn't fetch mysqli_stmt in %s on line %d
-done! \ No newline at end of file
+done!