mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
d30cd7d7e7
Closes GH-5590
23 lines
369 B
PHP
23 lines
369 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--
|
|
bool(false)
|
|
bool(false)
|
|
|
|
Fatal error: Uncaught Error: Class "B" not found in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|