php-src/ext/json/tests/005.phpt
2007-12-28 13:23:00 +00:00

24 lines
281 B
PHP

--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(0) {
}
}
string(4) "[[]]"
Done