mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
13 lines
214 B
PHP
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
|