mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
20 lines
447 B
PHP
20 lines
447 B
PHP
--TEST--
|
|
ZE2 A method cannot be redeclared abstract
|
|
--FILE--
|
|
<?php
|
|
|
|
class pass {
|
|
function show() {
|
|
echo "Call to function show()\n";
|
|
}
|
|
}
|
|
|
|
class fail extends pass {
|
|
abstract function show();
|
|
}
|
|
|
|
echo "Done\n"; // Shouldn't be displayed
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (fail::show) in %sabstract_redeclare.php on line %d
|