mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
25 lines
385 B
Plaintext
25 lines
385 B
Plaintext
|
--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)
|