mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
17 lines
205 B
PHP
Executable File
17 lines
205 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
|
|
|