1--TEST-- 2GH-12481: PHP crash on Windows 64-bit with JIT enabled 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6--SKIPIF-- 7<?php 8if (PHP_INT_SIZE !== 8) die('skip 64-bit only'); 9?> 10--FILE-- 11<?php 12function foo(&$var) { 13 $var &= 0xFFFFFFFF; 14 return intval($var); 15} 16$v = 0x7FFFFFFF1; 17for ($i = 0; $i < 10; $i++) { 18 foo($v); 19} 20?> 21DONE 22--EXPECTF-- 23DONE 24