mirror of
https://github.com/php/php-src.git
synced 2026-03-29 11:42:17 +02:00
19 lines
205 B
PHP
19 lines
205 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
|