Annotation of embedaddon/php/Zend/tests/ns_034.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: 034: Support for namespaces in compile-time constant reference
3: --FILE--
4: <?php
5: namespace A;
6: use A as B;
7: class Foo {
8: const C = "ok\n";
9: }
10: function f1($x=Foo::C) {
11: echo $x;
12: }
13: function f2($x=B\Foo::C) {
14: echo $x;
15: }
16: function f3($x=\A\Foo::C) {
17: echo $x;
18: }
19: echo Foo::C;
20: echo B\Foo::C;
21: echo \A\Foo::C;
22: f1();
23: f2();
24: f3();
25: --EXPECT--
26: ok
27: ok
28: ok
29: ok
30: ok
31: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>