mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
16 lines
272 B
PHP
16 lines
272 B
PHP
--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
|