xref: /PHP-5.3/Zend/tests/bug46665.phpt (revision c3025097)
1--TEST--
2Bug #46665 (Triggering autoload with a variable classname causes truncated autoload param)
3--FILE--
4<?php
5
6$baz = '\\Foo\\Bar\\Baz';
7new $baz();
8function __autoload($class) {
9    var_dump($class);
10    require __DIR__ .'/bug46665_autoload.inc';
11}
12
13?>
14--EXPECTF--
15%string|unicode%(11) "Foo\Bar\Baz"
16