xref: /PHP-8.0/ext/opcache/tests/jit/gh8847.phpt (revision 7cf6f173)
1--TEST--
2Bug GH-8847: PHP hanging infinitly at 100% cpu when check php syntaxe of a valid file
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10class 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?>
23DONE
24--EXPECTF--
25DONE
26