mirror of
https://github.com/php/php-src.git
synced 2024-12-28 11:20:29 +08:00
21 lines
374 B
PHP
21 lines
374 B
PHP
--TEST--
|
|
Ensure type hints for unknown types do not trigger autoload.
|
|
--FILE--
|
|
<?php
|
|
function __autoload($name)
|
|
{
|
|
echo "In autoload: ";
|
|
var_dump($name);
|
|
}
|
|
|
|
function f(UndefClass $x)
|
|
{
|
|
}
|
|
f(new stdClass);
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Catchable fatal error: Argument 1 passed to f() must be an instance of UndefClass, instance of stdClass given, called in %s
|
|
|
|
|