blob: 406462e17ad4a4436e10025ec8a60dde0c0413f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--TEST--
ZE2 An interface constructor signature must not be inherited
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
error_reporting(4095);
interface test {
public function __construct($foo);
}
class foo implements test {
public function __construct() {
echo "foo\n";
}
}
$foo = new foo;
?>
--EXPECT--
foo
|