mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
16 lines
307 B
PHP
16 lines
307 B
PHP
--TEST--
|
|
Bug #46665 (Triggering autoload with a variable classname causes truncated autoload param)
|
|
--FILE--
|
|
<?php
|
|
|
|
$baz = '\\Foo\\Bar\\Baz';
|
|
new $baz();
|
|
function __autoload($class) {
|
|
var_dump($class);
|
|
require __DIR__ .'/bug46665_autoload.inc';
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
%string|unicode%(12) "\Foo\Bar\Baz"
|