php-src/Zend/tests/clone_001.phpt

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