summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37707.phpt
blob: ac2dfb8777db8084c498c38033e811d21b98f4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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