summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-22 22:53:48 +0000
committerMarcus Boerger <helly@php.net>2003-12-22 22:53:48 +0000
commit717604ea70cfd7323237d1e0de9fba7b80e91786 (patch)
tree056cac0f5a0c54655c97dd8e0646d28d58be6a9e /tests/lang
parent26a0abbd0cfd4b691ac485206914aad0f68ba2ec (diff)
downloadphp-git-717604ea70cfd7323237d1e0de9fba7b80e91786.tar.gz
Add more tests
Diffstat (limited to 'tests/lang')
-rwxr-xr-xtests/lang/bug23524.phpt29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/lang/bug23524.phpt b/tests/lang/bug23524.phpt
new file mode 100755
index 0000000000..18ffc33a48
--- /dev/null
+++ b/tests/lang/bug23524.phpt
@@ -0,0 +1,29 @@
+--TEST--
+Bug #23524 Improper handling of constants in array indeces
+--FILE--
+<?php
+ echo "Begin\n";
+ define("THE_CONST",123);
+ function f($a=array(THE_CONST=>THE_CONST)) {
+ print_r($a);
+ }
+ f();
+ f();
+ f();
+ echo "Done";
+?>
+--EXPECT--
+Begin
+Array
+(
+ [123] => 123
+)
+Array
+(
+ [123] => 123
+)
+Array
+(
+ [123] => 123
+)
+Done