xref: /php-src/Zend/tests/bug46813.phpt (revision f8d79582)
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