mirror of
https://github.com/php/php-src.git
synced 2025-01-15 08:14:23 +08:00
29 lines
312 B
Plaintext
29 lines
312 B
Plaintext
|
--TEST--
|
||
|
Bug #38469 Unexpected creation of cycle
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$a = array();
|
||
|
$a[0] = $a;
|
||
|
var_dump($a);
|
||
|
$b = array(array());
|
||
|
$b[0][0] = $b;
|
||
|
var_dump($b);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
array(1) {
|
||
|
[0]=>
|
||
|
array(0) {
|
||
|
}
|
||
|
}
|
||
|
array(1) {
|
||
|
[0]=>
|
||
|
array(1) {
|
||
|
[0]=>
|
||
|
array(1) {
|
||
|
[0]=>
|
||
|
array(0) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|