php-src/Zend/tests/bug46665.phpt
Antony Dovgal 4df574285a MFH
2008-12-11 10:58:56 +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.inc';
}
?>
--EXPECTF--
%string|unicode%(12) "\Foo\Bar\Baz"