mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
d30cd7d7e7
Closes GH-5590
21 lines
347 B
PHP
21 lines
347 B
PHP
--TEST--
|
|
Ensure extends does trigger autoload.
|
|
--FILE--
|
|
<?php
|
|
spl_autoload_register(function ($name) {
|
|
echo "In autoload: ";
|
|
var_dump($name);
|
|
});
|
|
|
|
class C extends UndefBase
|
|
{
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
In autoload: string(9) "UndefBase"
|
|
|
|
Fatal error: Uncaught Error: Class "UndefBase" not found in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|