xref: /PHP-8.4/Zend/tests/bug37707.phpt (revision ea297654)
1--TEST--
2Bug #37707 (clone without assigning leaks memory)
3--FILE--
4<?php
5class testme {
6    function __clone() {
7        echo "cloned\n";
8    }
9}
10clone new testme();
11echo "NO LEAK\n";
12?>
13--EXPECT--
14cloned
15NO LEAK
16