summaryrefslogtreecommitdiff
path: root/ext/mysql/tests
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2008-12-01 21:20:47 +0000
committerJohannes Schlüter <johannes@php.net>2008-12-01 21:20:47 +0000
commit1ece804688971fd75c274cbfa5c398438cc1548a (patch)
tree6bf923569af90236d16df8b3ad16571af13abbc9 /ext/mysql/tests
parent91ce2d596372a1328f10a9aceee477326f458d00 (diff)
downloadphp-git-1ece804688971fd75c274cbfa5c398438cc1548a.tar.gz
MFH: Fix mysql_fetch_* and tests after param parsing changes
Diffstat (limited to 'ext/mysql/tests')
-rw-r--r--ext/mysql/tests/mysql_fetch_array.phpt4
-rw-r--r--ext/mysql/tests/mysql_fetch_assoc.phpt6
-rw-r--r--ext/mysql/tests/mysql_fetch_row.phpt4
3 files changed, 7 insertions, 7 deletions
diff --git a/ext/mysql/tests/mysql_fetch_array.phpt b/ext/mysql/tests/mysql_fetch_array.phpt
index c3a70ea55c..729523514a 100644
--- a/ext/mysql/tests/mysql_fetch_array.phpt
+++ b/ext/mysql/tests/mysql_fetch_array.phpt
@@ -15,8 +15,8 @@ $link = NULL;
if (NULL !== ($tmp = @mysql_fetch_array()))
printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
-if (false !== ($tmp = @mysql_fetch_array($link)))
- printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
+if (NULL != ($tmp = @mysql_fetch_array($link)))
+ printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
require('table.inc');
if (!$res = mysql_query("SELECT * FROM test ORDER BY id LIMIT 5", $link)) {
diff --git a/ext/mysql/tests/mysql_fetch_assoc.phpt b/ext/mysql/tests/mysql_fetch_assoc.phpt
index 172917b6fd..4479a2ab3e 100644
--- a/ext/mysql/tests/mysql_fetch_assoc.phpt
+++ b/ext/mysql/tests/mysql_fetch_assoc.phpt
@@ -17,8 +17,8 @@ $link = NULL;
if (!is_null($tmp = @mysql_fetch_assoc()))
printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
-if (false !== ($tmp = @mysql_fetch_assoc($link)))
- printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
+if (NULL !== ($tmp = @mysql_fetch_assoc($link)))
+ printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
require('table.inc');
if (!$res = mysql_query("SELECT id, label FROM test ORDER BY id LIMIT 1", $link)) {
@@ -135,4 +135,4 @@ array(5) {
[u"_foo"]=>
NULL
}
-done! \ No newline at end of file
+done!
diff --git a/ext/mysql/tests/mysql_fetch_row.phpt b/ext/mysql/tests/mysql_fetch_row.phpt
index 797e7ba1c8..d9fff217ad 100644
--- a/ext/mysql/tests/mysql_fetch_row.phpt
+++ b/ext/mysql/tests/mysql_fetch_row.phpt
@@ -15,8 +15,8 @@ $link = NULL;
if (!is_null($tmp = @mysql_fetch_row()))
printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
-if (false !== ($tmp = @mysql_fetch_row($link)))
- printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
+if (NULL !== ($tmp = @mysql_fetch_row($link)))
+ printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
require('table.inc');
if (!$res = mysql_query("SELECT id, label FROM test ORDER BY id LIMIT 1", $link)) {