mirror of
https://github.com/php/php-src.git
synced 2024-10-09 10:37:29 +00:00
21 lines
462 B
Plaintext
21 lines
462 B
Plaintext
|
--TEST--
|
||
|
ZE2 A derived class with an abstract method must be abstract
|
||
|
--SKIPIF--
|
||
|
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class base {
|
||
|
}
|
||
|
|
||
|
class derived extends base {
|
||
|
abstract function show();
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
<?php exit(0); ?>
|
||
|
--EXPECTF--
|
||
|
|
||
|
Fatal error: Class derived contains 1 abstract methods and must therefore be declared abstract (derived::show) in %sabstract_derived.php on line %d
|