mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
First pass at moving `Zend/tests/bug*` tests to existing sub directories Work towards GH-15631
16 lines
214 B
PHP
16 lines
214 B
PHP
--TEST--
|
|
Bug #37707 (clone without assigning leaks memory)
|
|
--FILE--
|
|
<?php
|
|
class testme {
|
|
function __clone() {
|
|
echo "cloned\n";
|
|
}
|
|
}
|
|
clone new testme();
|
|
echo "NO LEAK\n";
|
|
?>
|
|
--EXPECT--
|
|
cloned
|
|
NO LEAK
|