17 lines
310 B
Plaintext
17 lines
310 B
Plaintext
|
|
--TEST--
|
||
|
|
Bug #46665 (Triggering autoload with a variable classname causes truncated autoload param)
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
|
||
|
|
spl_autoload_register(function ($class) {
|
||
|
|
var_dump($class);
|
||
|
|
require __DIR__ .'/bug46665_autoload.inc';
|
||
|
|
});
|
||
|
|
|
||
|
|
$baz = '\\Foo\\Bar\\Baz';
|
||
|
|
new $baz();
|
||
|
|
|
||
|
|
?>
|
||
|
|
--EXPECT--
|
||
|
|
string(11) "Foo\Bar\Baz"
|