bug21849.phpt 239 B

12345678910111213141516
  1. --TEST--
  2. Bug #21849 (self::constant doesn't work as method's default parameter)
  3. --FILE--
  4. <?php
  5. class foo {
  6. const bar = "fubar\n";
  7. function __construct($arg = self::bar) {
  8. echo $arg;
  9. }
  10. }
  11. new foo();
  12. ?>
  13. --EXPECT--
  14. fubar