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