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