php-src/Zend/tests/gh10168/assign_ref_with_prop_ref.phpt
2023-04-04 18:55:47 +02:00

20 lines
239 B
PHP

--TEST--
GH-10168: Assign ref with prop ref
--FILE--
<?php
class Test {
static ?Test $test;
function __destruct() {
$GLOBALS['a'] = null;
}
}
$a = new Test;
$tmp = new Test;
var_dump($a = &$tmp);
?>
--EXPECT--
NULL