summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37707.phpt
blob: 1964958526b76abde03a7fce0093f67dbb720c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #37707 (clone without assigning leaks memory)
--FILE--
<?php
class testme {
	function __clone() {
		echo "clonned\n";
	}
}
clone new testme();
echo "NO LEAK\n";
?>
--EXPECT--
clonned
NO LEAK