projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix NULL deref with circular refs
[m6w6/ext-pq]
/
tests
/
conv001.phpt
diff --git
a/tests/conv001.phpt
b/tests/conv001.phpt
index 084cb062ad5881204db880dc09bf9cf008845354..6e794aa6af7896c122d299b18893553053848176 100644
(file)
--- a/
tests/conv001.phpt
+++ b/
tests/conv001.phpt
@@
-3,6
+3,7
@@
converter
--SKIPIF--
<?php
include "_skipif.inc";
--SKIPIF--
<?php
include "_skipif.inc";
+_ext("json");
?>
--INI--
date.timezone=UTC
?>
--INI--
date.timezone=UTC
@@
-69,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) {
@@
-208,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"]=>
@@
-346,7
+347,7
@@
array(1) {
string(3) "UTC"
}
[17]=>
string(3) "UTC"
}
[17]=>
- object(pq\DateTime)#
159
(4) {
+ object(pq\DateTime)#
%d
(4) {
["format"]=>
string(14) "Y-m-d H:i:s.uO"
["date"]=>
["format"]=>
string(14) "Y-m-d H:i:s.uO"
["date"]=>