summaryrefslogtreecommitdiff
path: root/Zend/tests/bug38234.phpt
blob: a81a3aadcca7dd4a7b1bc189bcd47da1a983acb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #38234 (Exception in __clone makes memory leak)
--FILE--
<?php
class Foo {
	function __clone() {
		throw new Exception();
	}
}
try {
	$x = new Foo();
	$y = clone $x;
} catch (Exception $e) {
}
echo "ok\n";
?>
--EXPECT--
ok