mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
15 lines
325 B
PHP
15 lines
325 B
PHP
--TEST--
|
|
ZE2 A class can only implement interfaces
|
|
--SKIPIF--
|
|
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
|
--FILE--
|
|
<?php
|
|
class base {
|
|
}
|
|
|
|
class derived implements base {
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: derived cannot implement base - it is not an interface in %s on line %d
|