1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 11:42:17 +02:00
Files
archived-php-src/Zend/tests/clone_003.phpt
2015-05-17 17:31:43 -05:00

16 lines
271 B
PHP

--TEST--
Using clone statement on undefined variable
--FILE--
<?php
$a = clone $b;
?>
--EXPECTF--
Notice: 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