xref: /php-src/ext/opcache/tests/jit/add_010.phpt (revision c16ad918)
1--TEST--
2JIT ADD: 010 overflow handling
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--SKIPIF--
8<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
9--FILE--
10<?php
11function foo($a) {
12    var_dump($a+$a=$a+$a=$a+$a=$a);
13}
14foo(PHP_INT_MAX);
15?>
16--EXPECT--
17float(7.378697629483821E+19)
18