File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
classes /
interface_optional_arg_003.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 4 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: default argument value in and in implementing class with interface in included file
3: --FILE--
4: <?php
5: include 'interface_optional_arg_003.inc';
6:
7: class C implements I {
8: function f($a = 2) {
9: var_dump($a);
10: }
11: }
12:
13: $c = new C;
14: $c->f();
15: ?>
16: --EXPECTF--
17: int(2)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>