dis-bench / src /php /php-src /Zend /tests /autoload /bug46665.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
310 Bytes
--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();
?>
--EXPECT--
string(11) "Foo\Bar\Baz"