mirror of
https://github.com/php/php-src.git
synced 2024-12-28 11:20:29 +08:00
27 lines
448 B
PHP
Executable File
27 lines
448 B
PHP
Executable File
--TEST--
|
|
ZE2 a class cannot extend an interface
|
|
--SKIPIF--
|
|
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
interface Test
|
|
{
|
|
function show();
|
|
}
|
|
|
|
class Tester extends Test
|
|
{
|
|
function show() {
|
|
echo __METHOD__ . "\n";
|
|
}
|
|
}
|
|
|
|
$o = new Tester;
|
|
$o->show();
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Fatal error: Class Tester cannot extend from interface Test in %sinterface_and_extends.php on line %d
|