php-src/Zend/tests/bug37707.phpt
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

16 lines
204 B
PHP
Executable File

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