xref: /PHP-8.0/Zend/tests/bug72854.phpt (revision e2230c17)
1--TEST--
2Bug #72854: PHP Crashes on duplicate destructor call
3--FILE--
4<?php
5
6function get() {
7    $t = new stdClass;
8    $t->prop = $t;
9    return $t;
10}
11
12$i = 42;
13get()->prop =& $i;
14
15?>
16===DONE===
17--EXPECT--
18===DONE===
19