diff options
Diffstat (limited to 'ext/json/tests/005.phpt')
-rw-r--r-- | ext/json/tests/005.phpt | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/ext/json/tests/005.phpt b/ext/json/tests/005.phpt deleted file mode 100644 index f6a8977d18..0000000000 --- a/ext/json/tests/005.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -json_encode() & endless loop - 3 ---SKIPIF-- -<?php if (!extension_loaded("json")) print "skip"; ?> ---FILE-- -<?php - -$a = array(); -$a[] = $a; - -var_dump($a); -var_dump(json_encode($a)); - -echo "Done\n"; -?> ---EXPECTF-- -array(1) { - [0]=> - array(1) { - [0]=> - *RECURSION* - } -} - -Warning: json_encode(): recursion detected in %s on line %d -string(8) "[[null]]" -Done |