php-src/Zend/tests/bug46665.phpt
2008-11-26 10:17:01 +00:00

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.php';
}
?>
--EXPECTF--
%string|unicode%(12) "\Foo\Bar\Baz"