mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +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
|