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