summaryrefslogtreecommitdiff
path: root/Zend/tests/clone_003.phpt
blob: 362e3466e65ab08079f20082a46bcb53c3044f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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