summaryrefslogtreecommitdiff
path: root/ext/json/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/tests')
-rw-r--r--ext/json/tests/005.phpt10
-rw-r--r--ext/json/tests/bug41567.phpt2
2 files changed, 5 insertions, 7 deletions
diff --git a/ext/json/tests/005.phpt b/ext/json/tests/005.phpt
index f6a8977d1..01a307f4a 100644
--- a/ext/json/tests/005.phpt
+++ b/ext/json/tests/005.phpt
@@ -13,15 +13,11 @@ var_dump(json_encode($a));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
array(1) {
[0]=>
- array(1) {
- [0]=>
- *RECURSION*
+ array(0) {
}
}
-
-Warning: json_encode(): recursion detected in %s on line %d
-string(8) "[[null]]"
+string(4) "[[]]"
Done
diff --git a/ext/json/tests/bug41567.phpt b/ext/json/tests/bug41567.phpt
index 5553df397..5a141003e 100644
--- a/ext/json/tests/bug41567.phpt
+++ b/ext/json/tests/bug41567.phpt
@@ -10,6 +10,8 @@ var_dump(json_decode($a));
echo "Done\n";
?>
+--INI--
+precision=14
--EXPECT--
float(123456789.12345)
Done