mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
10 lines
227 B
Plaintext
10 lines
227 B
Plaintext
|
--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
|