dis-bench / src /php /php-src /Zend /tests /clone /clone_001.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
220 Bytes
--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