summaryrefslogtreecommitdiff
path: root/Zend/tests/bug42818.phpt
blob: b37ce13fd174adafb3d044d129725c8233539814 (plain)
1
2
3
4
5
6
7
8
9
10
11
--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