mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
14 lines
220 B
PHP
14 lines
220 B
PHP
--TEST--
|
|
Using clone statement on non-object
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = clone array();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: __clone method called on non-object in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|