summaryrefslogtreecommitdiff
path: root/Zend/tests/clone_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/clone_003.phpt')
-rw-r--r--Zend/tests/clone_003.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/clone_003.phpt b/Zend/tests/clone_003.phpt
new file mode 100644
index 0000000..362e346
--- /dev/null
+++ b/Zend/tests/clone_003.phpt
@@ -0,0 +1,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