mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
19 lines
220 B
PHP
19 lines
220 B
PHP
--TEST--
|
|
Bug #72854: PHP Crashes on duplicate destructor call
|
|
--FILE--
|
|
<?php
|
|
|
|
function get() {
|
|
$t = new stdClass;
|
|
$t->prop = $t;
|
|
return $t;
|
|
}
|
|
|
|
$i = 42;
|
|
get()->prop =& $i;
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|