summaryrefslogtreecommitdiff
path: root/Zend/tests/temporary_cleaning_002.phpt
blob: bea54e7f77be012d1365aa4549077331b1d0c480 (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
26
27
28
29
30
31
32
--TEST--
Temporary leak on rope (encapsed string)
--FILE--
<?php
class Obj {
	function __get($x) {
		throw new Exception();
	}
}

$x = new Obj;
$y = 0;

try {
	$r = "$y|$x->x|";
} catch (Exception $e) {
}

try {
	$r = "$x->x|$y|";
} catch (Exception $e) {
}

try {
	$r = "$y|$y|$x->x";
} catch (Exception $e) {
}

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