bug41633_2.phpt 297 B

1234567891011121314
  1. --TEST--
  2. Bug #41633.2 (Undefined class constants must not be substituted by strings)
  3. --FILE--
  4. <?php
  5. class Foo {
  6. const A = self::B;
  7. }
  8. echo Foo::A."\n";
  9. ?>
  10. --EXPECTF--
  11. Fatal error: Uncaught Error: Undefined constant self::B in %s:%d
  12. Stack trace:
  13. #0 {main}
  14. thrown in %sbug41633_2.php on line 5