summaryrefslogtreecommitdiff
path: root/tests/lang/bug21849.phpt
blob: 30b311320bebf74c9100508eac5a79e95dc3ebe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #21849 (self::constant doesn't work as method's default parameter)
--FILE--
<?php
class foo {
	const bar = "fubar\n";
	
	function foo($arg = self::bar) {
		echo $arg;
	}
}

new foo();
?>
--EXPECT--
fubar