diff options
| author | Sergei Morozov <morozov@tut.by> | 2017-10-29 12:16:56 -0700 |
|---|---|---|
| committer | Sara Golemon <pollita@php.net> | 2018-02-10 10:40:47 -0500 |
| commit | 1c393e95025347eaa688c38f723308031c028559 (patch) | |
| tree | 2b9ceeca273ba67435868ca432f68fa5aa560b7d /ext/mysqli/tests/mysqli_rollback.phpt | |
| parent | 70fec8a1cc0efbc36e4d302d280f2f08ab05bab6 (diff) | |
| download | php-git-1c393e95025347eaa688c38f723308031c028559.tar.gz | |
[Bug 75448] In case of failure, mysqli::prepare() returns NULL instead of FALSE
Diffstat (limited to 'ext/mysqli/tests/mysqli_rollback.phpt')
| -rw-r--r-- | ext/mysqli/tests/mysqli_rollback.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqli/tests/mysqli_rollback.phpt b/ext/mysqli/tests/mysqli_rollback.phpt index be49000315..8f2a13b96c 100644 --- a/ext/mysqli/tests/mysqli_rollback.phpt +++ b/ext/mysqli/tests/mysqli_rollback.phpt @@ -63,8 +63,8 @@ mysqli_rollback() mysqli_close($link); - if (!is_null($tmp = mysqli_rollback($link))) - printf("[014] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); + if (false !== ($tmp = mysqli_rollback($link))) + printf("[014] Expecting false, got %s/%s\n", gettype($tmp), $tmp); print "done!\n"; ?> @@ -74,4 +74,4 @@ mysqli_rollback() ?> --EXPECTF-- Warning: mysqli_rollback(): Couldn't fetch mysqli in %s on line %d -done!
\ No newline at end of file +done! |
