mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +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
|