mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
a484b9a535
As the parent class is fetched prior to binding, there are no safety concerns in this case and we can replace the fatal error with an Error exception.
21 lines
363 B
PHP
21 lines
363 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 %sautoload_011.php on line %d
|