bug18872.phpt 205 B

123456789101112131415161718
  1. --TEST--
  2. Bug #18872 (class constant used as default parameter)
  3. --FILE--
  4. <?php
  5. class FooBar {
  6. const BIFF = 3;
  7. }
  8. function foo($biff = FooBar::BIFF) {
  9. echo $biff . "\n";
  10. }
  11. foo();
  12. foo();
  13. ?>
  14. --EXPECT--
  15. 3
  16. 3