mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
21 lines
253 B
PHP
21 lines
253 B
PHP
--TEST--
|
|
GH-10168: Assign static prop ref
|
|
--FILE--
|
|
<?php
|
|
|
|
class Test {
|
|
static ?Test $test;
|
|
|
|
function __destruct() {
|
|
Test::$test = null;
|
|
}
|
|
}
|
|
|
|
Test::$test = new Test;
|
|
$tmp = new Test;
|
|
var_dump(Test::$test = &$tmp);
|
|
|
|
?>
|
|
--EXPECT--
|
|
NULL
|