diff options
Diffstat (limited to 'ext/mysql/tests/mysql_free_result.phpt')
-rw-r--r-- | ext/mysql/tests/mysql_free_result.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysql/tests/mysql_free_result.phpt b/ext/mysql/tests/mysql_free_result.phpt index 5a02ecff37..95e5656a4f 100644 --- a/ext/mysql/tests/mysql_free_result.phpt +++ b/ext/mysql/tests/mysql_free_result.phpt @@ -15,8 +15,8 @@ $link = NULL; if (!is_null($tmp = @mysql_free_result())) printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); -if (null !== ($tmp = @mysql_free_result($link))) - printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); +if (false !== ($tmp = @mysql_free_result($link))) + printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); require('table.inc'); if (!$res = mysql_query("SELECT id FROM test ORDER BY id LIMIT 1", $link)) { @@ -44,4 +44,4 @@ bool(true) Warning: mysql_free_result(): %d is not a valid MySQL result resource in %s on line %d bool(false) -done! +done!
\ No newline at end of file |