xref: /PHP-5.3/Zend/tests/bug42817.phpt (revision 4c619a3f)
1--TEST--
2Bug #42817 (clone() on a non-object does not result in a fatal error)
3--FILE--
4<?php
5$a = clone(null);
6array_push($a->b, $c);
7?>
8--EXPECTF--
9Fatal error: __clone method called on non-object in %sbug42817.php on line 2
10