gh8847.phpt 496 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Bug GH-8847: PHP hanging infinitly at 100% cpu when check php syntaxe of a valid file
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. --FILE--
  9. <?php
  10. class klass
  11. {
  12. public function method(int $int, bool $bool=false) : int
  13. {
  14. while($int >= 0 && !$function1)
  15. $int--;
  16. if($bool)
  17. while($int >= 0 && $function1)
  18. $int--;
  19. return $int;
  20. }
  21. }
  22. ?>
  23. DONE
  24. --EXPECTF--
  25. DONE