php-src/tests/lang/bug18872.phpt
2003-06-16 09:20:42 +00:00

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