php-src/Zend/tests/bug46813.phpt
2020-02-03 22:52:20 +01:00

25 lines
392 B
PHP

--TEST--
Bug #46813: class_exists doesn`t work with fully qualified namespace
--FILE--
<?php
namespace test;
{
class inner
{
}
}
$inner = new \test\inner();
echo "autoload == true:\n";
var_dump(class_exists('\test\inner', true));
echo "autoload == false:\n";
var_dump(class_exists('\test\inner', true));
?>
--EXPECT--
autoload == true:
bool(true)
autoload == false:
bool(true)