dis-bench / src /php /php-src /ext /json /tests /005.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
215 Bytes
--TEST--
json_encode() & endless loop - 3
--FILE--
<?php
$a = array();
$a[] = $a;
var_dump($a);
var_dump(json_encode($a));
echo "Done\n";
?>
--EXPECT--
array(1) {
[0]=>
array(0) {
}
}
string(4) "[[]]"
Done