blob: a681d861d0c8f268e54d1cf76ac63cbf6a94deb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--TEST--
Bug #42817 (clone() on a non-object does not result in a fatal error)
--FILE--
<?php
$a = clone(null);
array_push($a->b, $c);
?>
--EXPECTF--
Fatal error: Uncaught Error: __clone method called on non-object in %sbug42817.php:2
Stack trace:
#0 {main}
thrown in %sbug42817.php on line 2
|