mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
We want the class declaration to be available while compiling the parent class.
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
|