summaryrefslogtreecommitdiff
path: root/ext/mysql/tests/mysql_insert_id.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/tests/mysql_insert_id.phpt')
-rw-r--r--ext/mysql/tests/mysql_insert_id.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysql/tests/mysql_insert_id.phpt b/ext/mysql/tests/mysql_insert_id.phpt
index 29ac78f243..832f370b5f 100644
--- a/ext/mysql/tests/mysql_insert_id.phpt
+++ b/ext/mysql/tests/mysql_insert_id.phpt
@@ -15,8 +15,8 @@ $link = NULL;
if (false !== ($tmp = @mysql_insert_id()))
printf("[001] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
-if (false !== ($tmp = @mysql_insert_id($link)))
- printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
+if (NULL !== ($tmp = @mysql_insert_id($link)))
+ printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
if (!is_null($tmp = @mysql_insert_id($link, 'too many args')))
printf("[002a] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
@@ -63,4 +63,4 @@ print "done!";
--EXPECTF--
Warning: mysql_insert_id(): %d is not a valid MySQL-Link resource in %s on line %d
bool(false)
-done! \ No newline at end of file
+done!