constants_error_004.phpt 219 B

12345678910111213
  1. --TEST--
  2. Class constant whose initial value refereces a non-existent class
  3. --FILE--
  4. <?php
  5. class C
  6. {
  7. const c1 = D::hello;
  8. }
  9. $a = new C();
  10. ?>
  11. --EXPECTF--
  12. Fatal error: Class 'D' not found in %s on line %d