mirror of
https://github.com/php/php-src.git
synced 2026-03-25 00:32:23 +01:00
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
22 lines
215 B
PHP
22 lines
215 B
PHP
--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
|