xref: /PHP-8.0/Zend/tests/bug46665.phpt (revision f72b6c5e)
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--EXPECT--
16string(11) "Foo\Bar\Baz"
17