Author: uwendel
Date: 2007-07-12 17:29:25 +0200 (Thu, 12 Jul 2007)
New Revision: 737
Modified:
trunk/tests/ext/mysqli/mysqli_query.phpt
Log:
Fixing [U]EXPECTF
Modified: trunk/tests/ext/mysqli/mysqli_query.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_query.phpt 2007-07-12 15:26:56 UTC (rev 736)
+++ trunk/tests/ext/mysqli/mysqli_query.phpt 2007-07-12 15:29:25 UTC (rev 737)
@@ -42,9 +42,9 @@
if (!$res = mysqli_query($link, 'SELECT "a" AS ""'))
printf("[007a] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- var_dump(mysqli_fetch_assoc($res));
+ var_dump($tmp = mysqli_fetch_assoc($res));
+ var_dump($tmp[""]);
mysqli_free_result($res);
-
if (false !== ($res = mysqli_query($link, 'SELECT "this is sql but with semicolon" AS
valid ; SHOW VARIABLES')))
printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
@@ -114,6 +114,11 @@
["valid"]=>
string(30) "this is sql but with semicolon"
}
+array(1) {
+ [""]=>
+ string(1) "a"
+}
+string(1) "a"
Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
done!
@@ -122,6 +127,11 @@
[u"valid"]=>
unicode(30) "this is sql but with semicolon"
}
+array(1) {
+ [u""]=>
+ unicode(1) "a"
+}
+unicode(1) "a"
Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
done!
| Thread |
|---|
| • PHP mysqlnd svn commit: r737 - trunk/tests/ext/mysqli | uwendel | 12 Jul |