projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
let JSON be decoded as array unless fetch_type is FETCH_OBJECT
[m6w6/ext-pq]
/
tests
/
conv001.phpt
diff --git
a/tests/conv001.phpt
b/tests/conv001.phpt
index ec88151d4227c08e1d01748b3286582cceeaa91d..6e794aa6af7896c122d299b18893553053848176 100644
(file)
--- a/
tests/conv001.phpt
+++ b/
tests/conv001.phpt
@@
-70,7
+70,7
@@
class JSONConverter extends Converter
}
function convertFromString($string, $type) {
}
function convertFromString($string, $type) {
- return json_decode($string);
+ return json_decode($string
, true
);
}
function convertToString($data, $type) {
}
function convertToString($data, $type) {
@@
-209,11
+209,11
@@
array(1) {
int(1343423)
}
[3]=>
int(1343423)
}
[3]=>
-
object(stdClass)#%d
(3) {
+
array
(3) {
["int"]=>
int(123)
["obj"]=>
["int"]=>
int(123)
["obj"]=>
-
object(stdClass)#%d
(3) {
+
array
(3) {
["a"]=>
int(1)
["b"]=>
["a"]=>
int(1)
["b"]=>