summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72854.phpt
blob: 74139c7ebc1e695dd05b60bbdc2178aec3075ba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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===