summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_040.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-11-22 10:46:44 +0000
committerDmitry Stogov <dmitry@php.net>2007-11-22 10:46:44 +0000
commit975a66da798dbb1c900bf05fb951610dfc0d8579 (patch)
treebfada02b125d0d49510c042c97b97ae91f7785ad /Zend/tests/ns_040.phpt
parent1e9fec2a49b305ae2ba9bfa4631e8bacbad995cb (diff)
downloadphp-git-975a66da798dbb1c900bf05fb951610dfc0d8579.tar.gz
Fixed bug #43318
The "const" statement is still allowed outside of namespaces but arrays are disabled.
Diffstat (limited to 'Zend/tests/ns_040.phpt')
-rw-r--r--Zend/tests/ns_040.phpt9
1 files changed, 0 insertions, 9 deletions
diff --git a/Zend/tests/ns_040.phpt b/Zend/tests/ns_040.phpt
index f017aff0bd..fb2314466c 100644
--- a/Zend/tests/ns_040.phpt
+++ b/Zend/tests/ns_040.phpt
@@ -6,9 +6,6 @@ namespace X;
use X as Y;
const A = "ok\n";
const B = A;
-const C = array(A);
-const D = array("aaa"=>A);
-const E = array(A=>"aaa\n");
function f1($x=A) {
echo $x;
}
@@ -42,9 +39,6 @@ f2();
f3();
f4();
echo B;
-$x = C; echo $x[0];
-$x = D; echo $x["aaa"];
-$x = E; echo $x["ok\n"];
f5();
f6();
f7();
@@ -61,8 +55,5 @@ ok
ok
ok
ok
-aaa
-ok
-ok
ok
aaa