mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
19 lines
241 B
PHP
19 lines
241 B
PHP
--TEST--
|
|
Bug #18872 (class constant used as default parameter)
|
|
--FILE--
|
|
<?php
|
|
class FooBar {
|
|
const BIFF = 3;
|
|
}
|
|
|
|
function foo($biff = FooBar::BIFF) {
|
|
echo $biff . "\n";
|
|
}
|
|
|
|
foo();
|
|
foo();
|
|
?>
|
|
--EXPECT--
|
|
3
|
|
3
|