Annotation of embedaddon/php/Zend/tests/bug47593.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #47593 (interface_exists() returns false when using absolute namespace path)
3: --FILE--
4: <?php
5:
6: namespace test;
7: const TEST = 11;
8:
9: class foo {
10: public function xyz() {
11: }
12: }
13:
14: interface baz {
15: }
16:
17: function bar() {
18: }
19:
20:
21: var_dump(interface_exists('\test\baz'));
22: var_dump(function_exists('\test\bar'));
23: var_dump(constant('\test\TEST'));
24: var_dump(defined('\test\TEST'));
25: var_dump(defined('TEST'));
26:
27:
28: ?>
29: --EXPECT--
30: bool(true)
31: bool(true)
32: int(11)
33: bool(true)
34: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>