1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
2025-06-24 20:14:40 +02:00

13 lines
274 B
PHP

--TEST--
Bug #42818 ($foo = clone(array()); leaks memory)
--FILE--
<?php
try {
$foo = clone(array());
} catch (Error $e) {
echo $e::class, ": ", $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
TypeError: clone(): Argument #1 ($object) must be of type object, array given