1--TEST-- 2JIT MUL: 008 incorrect elimination of type store 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.protect_memory=1 8--SKIPIF-- 9<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?> 10--FILE-- 11<?php 12function foo(int $a){ 13 $a=$a%10; 14 $a=$f=$a*(6158978401740); 15 $a=$f=$a*(261740); 16 $a%0; 17} 18foo(3); 19?> 20--EXPECTF-- 21Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %smul_008.php:6 22Stack trace: 23#0 %smul_008.php(8): foo(%d) 24#1 {main} 25 thrown in %smul_008.php on line 6 26