halt_compiler5.phpt 267 B

123456789101112
  1. --TEST--
  2. Using __COMPILER_HALF_OFFSET__ with trailing {} (OSS-Fuzz #17895)
  3. --FILE--
  4. <?php
  5. __COMPILER_HALT_OFFSET__;
  6. {}
  7. ?>
  8. --EXPECTF--
  9. Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d
  10. Stack trace:
  11. #0 {main}
  12. thrown in %s on line %d