1--TEST-- 2Bug #46665 (Triggering autoload with a variable classname causes truncated autoload param) 3--FILE-- 4<?php 5 6spl_autoload_register(function ($class) { 7 var_dump($class); 8 require __DIR__ .'/bug46665_autoload.inc'; 9}); 10 11$baz = '\\Foo\\Bar\\Baz'; 12new $baz(); 13 14?> 15--EXPECTF-- 16string(11) "Foo\Bar\Baz" 17