summaryrefslogtreecommitdiff
path: root/tests/classes/interface_optional_arg.phpt
blob: 9c0de6cfb0bb38c50caa02e0a6cec9aa79ee3c53 (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
25
--TEST--
ZE2 An interface method allows additional default arguments
--FILE--
<?php

error_reporting(4095);

interface test {
	public function bar();
}

class foo implements test {

	public function bar($foo = NULL) {
		echo "foo\n";
	}
}

$foo = new foo;
$foo->bar();

?>
--EXPECT--
foo