--TEST-- GH-16984 (function JIT overflow bug) --EXTENSIONS-- opcache --SKIPIF-- --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.file_update_protection=0 opcache.jit_buffer_size=32M opcache.jit=function --FILE-- foo($value); if ($val <= PHP_INT_MAX) { $test->integer = $val; } } function main() { $test = new Test; foo($test, 9223372036854775806); foo($test, 9223372036854775807); // Also reproduces without this call, but this imitates the psalm code var_dump($test->integer); } main(); ?> --EXPECT-- int(9223372036854775807)