1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionReference_bug78263.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

18 lines
372 B
PHP

--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) {
}