summaryrefslogtreecommitdiff
path: root/Zend/tests/temporary_cleaning_001.phpt
blob: 40340bc3dafd3366f7326de2883c3a1b0e24e12d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Temporary leak on exception
--XFAIL--
See Bug #62210 and attempt to fix it in "tmp_livelibess" branch
--FILE--
<?php

function ops() {
    throw new Exception();
}

try {
	$x = 2;
	$y = new stdClass;
	while ($x-- && new stdClass) {
		$r = [$x] + ($y ? ((array) $x) + [2] : ops());
		$y = (array) $y;
	}
} catch (Exception $e) {
}

?>
==DONE==
--EXPECT--
==DONE==