summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_stmt_free_result.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_free_result.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_free_result.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_stmt_free_result.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_free_result.phpt b/ext/mysqli/tests/mysqli_stmt_free_result.phpt
index 08b33b7959..292905ab63 100644
--- a/ext/mysqli/tests/mysqli_stmt_free_result.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_free_result.phpt
@@ -30,8 +30,8 @@ require_once('skipifconnectfailure.inc');
printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
// stmt object status test
- if (NULL !== ($tmp = mysqli_stmt_free_result($stmt)))
- printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
+ if (false !== ($tmp = mysqli_stmt_free_result($stmt)))
+ printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id"))
printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
@@ -67,8 +67,8 @@ require_once('skipifconnectfailure.inc');
mysqli_stmt_close($stmt);
- if (NULL !== ($tmp = mysqli_stmt_free_result($stmt)))
- printf("[015] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
+ if (false !== ($tmp = mysqli_stmt_free_result($stmt)))
+ printf("[015] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
mysqli_close($link);
@@ -83,4 +83,4 @@ Warning: mysqli_stmt_free_result(): invalid object or resource mysqli_stmt
in %s on line %d
Warning: mysqli_stmt_free_result(): Couldn't fetch mysqli_stmt in %s on line %d
-done! \ No newline at end of file
+done!