blob: 868edc08123f836f2ab4c64931aafa18e399fbde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
Bug #78263: Handling of self-referential array special case
--FILE--
<?php
// The case of a directly self-referential array is special and will
// be treated as a proper reference despite rc=1 during array copying.
$a = [&$a];
$b = [$a];
unset($a);
var_dump(ReflectionReference::fromArrayElement($b[0], 0));
?>
--EXPECT--
object(ReflectionReference)#1 (0) {
}
|