mirror of
https://github.com/php/php-src.git
synced 2025-01-10 13:03:54 +08:00
10 lines
227 B
PHP
10 lines
227 B
PHP
--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
|