mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
16 lines
336 B
PHP
16 lines
336 B
PHP
--TEST--
|
|
ZE2 An interface method cannot be private
|
|
--SKIPIF--
|
|
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
interface if_a {
|
|
abstract private function err();
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Fatal error: Access type for interface method if_a::err() must be omitted in %s on line %d
|