mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
20 lines
347 B
PHP
20 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
|