php-src/Zend/tests/clone_003.phpt
2008-05-11 22:44:56 +00:00

13 lines
214 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: __clone method called on non-object in %s on line %d