Author: uwendel
Date: 2007-09-13 13:56:08 +0200 (Thu, 13 Sep 2007)
New Revision: 1032
Modified:
trunk/tests/ext/mysqli/mysqli_fetch_assoc.phpt
Log:
Working a bit for the code coverage...
Modified: trunk/tests/ext/mysqli/mysqli_fetch_assoc.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_fetch_assoc.phpt 2007-09-13 11:29:52 UTC (rev 1031)
+++ trunk/tests/ext/mysqli/mysqli_fetch_assoc.phpt 2007-09-13 11:56:08 UTC (rev 1032)
@@ -34,7 +34,25 @@
mysqli_free_result($res);
- if (!$res = mysqli_query($link, "SELECT 1 AS a, 2 AS a, 3 AS c, 4 AS C, NULL AS d, true
AS e")) {
+ if (!$res = mysqli_query($link, "SELECT
+ 1 AS a,
+ 2 AS a,
+ 3 AS c,
+ 4 AS C,
+ NULL AS d,
+ true AS e,
+ 5 AS '-1',
+ 6 AS '-10',
+ 7 AS '-100',
+ 8 AS '-1000',
+ 9 AS '10000',
+ 'a' AS '100000',
+ 'b' AS '1000000',
+ 'c' AS '9',
+ 'd' AS '9',
+ 'e' AS '01',
+ 'f' AS '-02'
+ ")) {
printf("[007] Cannot run query, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
}
print "[008]\n";
@@ -60,7 +78,7 @@
[006]
NULL
[008]
-array(5) {
+array(15) {
["a"]=>
string(1) "2"
["c"]=>
@@ -71,6 +89,26 @@
NULL
["e"]=>
string(1) "1"
+ [-1]=>
+ string(1) "5"
+ [-10]=>
+ string(1) "6"
+ [-100]=>
+ string(1) "7"
+ [-1000]=>
+ string(1) "8"
+ [10000]=>
+ string(1) "9"
+ [100000]=>
+ string(1) "a"
+ [1000000]=>
+ string(1) "b"
+ [9]=>
+ string(1) "d"
+ ["01"]=>
+ string(1) "e"
+ ["-02"]=>
+ string(1) "f"
}
Warning: mysqli_fetch_assoc(): Couldn't fetch mysqli_result in %s on line %d
@@ -86,7 +124,7 @@
[006]
NULL
[008]
-array(5) {
+array(15) {
[u"a"]=>
unicode(1) "2"
[u"c"]=>
@@ -97,6 +135,26 @@
NULL
[u"e"]=>
unicode(1) "1"
+ [-1]=>
+ unicode(1) "5"
+ [-10]=>
+ unicode(1) "6"
+ [-100]=>
+ unicode(1) "7"
+ [-1000]=>
+ unicode(1) "8"
+ [10000]=>
+ unicode(1) "9"
+ [100000]=>
+ unicode(1) "a"
+ [1000000]=>
+ unicode(1) "b"
+ [9]=>
+ unicode(1) "d"
+ [u"01"]=>
+ unicode(1) "e"
+ [u"-02"]=>
+ unicode(1) "f"
}
Warning: mysqli_fetch_assoc(): Couldn't fetch mysqli_result in %s on line %d
| Thread |
|---|
| • PHP mysqlnd svn commit: r1032 - trunk/tests/ext/mysqli | uwendel | 13 Sep |