mirror of
https://github.com/php/php-src.git
synced 2024-12-16 21:37:49 +08:00
17 lines
372 B
PHP
17 lines
372 B
PHP
--TEST--
|
|
ZE2 A derived class with an abstract method must be abstract
|
|
--FILE--
|
|
<?php
|
|
|
|
class base {
|
|
}
|
|
|
|
class derived extends base {
|
|
abstract function show();
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Fatal error: Class derived contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (derived::show) in %sabstract_derived.php on line %d
|