xref: /PHP-5.6/Zend/tests/clone_003.phpt (revision f6c57d1f)
1--TEST--
2Using clone statement on undefined variable
3--FILE--
4<?php
5
6$a = clone $b;
7
8?>
9--EXPECTF--
10Notice: Undefined variable: b in %s on line %d
11
12Fatal error: __clone method called on non-object in %s on line %d
13