php-8.0.30-src/ext/opcache/tests/jit/gh8847.phpt

26 lines
496 B
PHP

--TEST--
Bug GH-8847: PHP hanging infinitly at 100% cpu when check php syntaxe of a valid file
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
class klass
{
public function method(int $int, bool $bool=false) : int
{
while($int >= 0 && !$function1)
$int--;
if($bool)
while($int >= 0 && $function1)
$int--;
return $int;
}
}
?>
DONE
--EXPECTF--
DONE