1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/Zend/tests/bug46665.phpt
2018-02-22 08:11:30 +01:00

17 lines
311 B
PHP

--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();
?>
--EXPECTF--
string(11) "Foo\Bar\Baz"