summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37707.phpt
blob: 6781804aa51e27ea31491bf49e80f67763493f7a (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