mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
17 lines
264 B
PHP
17 lines
264 B
PHP
--TEST--
|
|
default argument value in and in implementing class with interface in included file
|
|
--FILE--
|
|
<?php
|
|
include 'interface_optional_arg_003.inc';
|
|
|
|
class C implements I {
|
|
function f($a = 2) {
|
|
var_dump($a);
|
|
}
|
|
}
|
|
|
|
$c = new C;
|
|
$c->f();
|
|
?>
|
|
--EXPECTF--
|
|
int(2)
|