503f75d08b
These names don't make sense now that we run both suites the same way.
27 linhas
477 B
PHP
27 linhas
477 B
PHP
<?php
|
|
interface I {
|
|
function foo($x, $y=0);
|
|
}
|
|
interface J {
|
|
function foo($x, $y);
|
|
}
|
|
interface K {
|
|
function foo($x, $y=0, array $z);
|
|
}
|
|
interface L {
|
|
function foo($x, $y, array $z=null);
|
|
}
|
|
interface M {
|
|
function foo($x, $y=0, array $z=array());
|
|
}
|
|
class C implements I, J, K, L, M {
|
|
public function foo($x, $y=0, array $z=null, array $a=null) {
|
|
echo "$x $y $z\n";
|
|
}
|
|
}
|
|
$obj = new C;
|
|
$obj->foo(1);
|
|
$obj->foo(1, 2);
|
|
$obj->foo(1, 2, null);
|
|
$obj->foo(1, 2, array());
|