summaryrefslogtreecommitdiff
path: root/Zend/tests/restrict_globals/key_canonicalization.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/restrict_globals/key_canonicalization.phpt')
-rw-r--r--Zend/tests/restrict_globals/key_canonicalization.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/restrict_globals/key_canonicalization.phpt b/Zend/tests/restrict_globals/key_canonicalization.phpt
new file mode 100644
index 0000000000..66d9a29a92
--- /dev/null
+++ b/Zend/tests/restrict_globals/key_canonicalization.phpt
@@ -0,0 +1,11 @@
+--TEST--
+$GLOBALS should have canonicalized keys
+--FILE--
+<?php
+
+${1} = 42;
+var_dump($GLOBALS[1]);
+
+?>
+--EXPECT--
+int(42)