summaryrefslogtreecommitdiff
path: root/Zend/tests/bug42817.phpt
blob: b1beca4d0aef030699d8420d7b43430f754df487 (plain)
1
2
3
4
5
6
7
8
9
--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: __clone method called on non-object in %sbug42817.php on line 2