summaryrefslogtreecommitdiff
path: root/Zend/tests/unset_cv01.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/unset_cv01.phpt')
-rw-r--r--Zend/tests/unset_cv01.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/unset_cv01.phpt b/Zend/tests/unset_cv01.phpt
new file mode 100644
index 0000000000..99af118d10
--- /dev/null
+++ b/Zend/tests/unset_cv01.phpt
@@ -0,0 +1,13 @@
+--TEST--
+unset() CV 1 (unset() global variable)
+--FILE--
+<?php
+$x = "ok\n";
+echo $x;
+unset($x);
+echo $x;
+?>
+--EXPECTF--
+ok
+
+Notice: Undefined variable: x in %sunset_cv01.php on line %d