xref: /PHP-5.3/tests/lang/bug18872.phpt (revision 91ec828d)
1--TEST--
2Bug #18872 (class constant used as default parameter)
3--FILE--
4<?php
5class FooBar {
6	const BIFF = 3;
7}
8
9function foo($biff = FooBar::BIFF) {
10	echo $biff . "\n";
11}
12
13foo();
14foo();
15?>
16--EXPECT--
173
183
19