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