mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
17 lines
275 B
PHP
17 lines
275 B
PHP
--TEST--
|
|
Ensure that extending of undefined class throws the exception
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
class A extends B {}
|
|
} catch (Error $e) {
|
|
var_dump(class_exists('A'));
|
|
var_dump(class_exists('B'));
|
|
throw $e;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class 'B' not found in %s on line %d
|