1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/Zend/tests/bug37707.phpt
2020-02-03 22:52:20 +01:00

16 lines
216 B
PHP

--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