mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
13 lines
257 B
PHP
13 lines
257 B
PHP
--TEST--
|
|
Bug #42818 ($foo = clone(array()); leaks memory)
|
|
--FILE--
|
|
<?php
|
|
$foo = clone(array());
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: __clone method called on non-object in %sbug42818.php:2
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sbug42818.php on line 2
|
|
|