xref: /PHP-8.0/tests/lang/bug18872.phpt (revision f8d79582)
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