dis-bench / src /php /php-src /Zend /tests /clone /clone_003.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
272 Bytes
--TEST--
Using clone statement on undefined variable
--FILE--
<?php
$a = clone $b;
?>
--EXPECTF--
Warning: Undefined variable $b in %s on line %d
Fatal error: Uncaught Error: __clone method called on non-object in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d