mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
17 lines
354 B
PHP
17 lines
354 B
PHP
--TEST--
|
|
ZE2 A final method cannot be abstract
|
|
--SKIPIF--
|
|
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class fail {
|
|
final abstract function show();
|
|
}
|
|
|
|
echo "Done\n"; // Shouldn't be displayed
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Fatal error: Cannot use the final modifier on an abstract class member in %s
|