xref: /PHP-7.4/Zend/tests/bug37707.phpt (revision d679f022)
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