summaryrefslogtreecommitdiff
path: root/Zend/tests/bug46665.phpt
blob: 1f82454387f467d4f8e107fca1278ccdf49021f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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%(11) "Foo\Bar\Baz"