xref: /PHP-7.4/Zend/tests/bug46813.phpt (revision 782352c5)
1--TEST--
2Bug #46813: class_exists doesn`t work with fully qualified namespace
3--FILE--
4<?php
5namespace test;
6{
7	class inner
8	{
9
10	}
11}
12
13$inner = new \test\inner();
14
15echo "autoload == true:\n";
16var_dump(class_exists('\test\inner', true));
17echo "autoload == false:\n";
18var_dump(class_exists('\test\inner', true));
19?>
20--EXPECT--
21autoload == true:
22bool(true)
23autoload == false:
24bool(true)
25