mirror of
https://github.com/php/php-src.git
synced 2026-04-28 10:43:30 +02:00
567213c32a
These values not always converted to IS_LONG (e.g. by -- and ++) and this leads to incorrect range inferene and later to incorrect JIT code generation.
23 lines
342 B
PHP
23 lines
342 B
PHP
--TEST--
|
|
Range inference 019:
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
--FILE--
|
|
<?php
|
|
function test() {
|
|
$a = $y = null;
|
|
for($cnt = 0; $cnt < 6; $cnt++) {
|
|
$e = $a-- + $a *= $a;
|
|
$a-- + $y -= $e;
|
|
$a-- + $a *= $a;
|
|
$a-- + $a *= $a;
|
|
}
|
|
}
|
|
test();
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
DONE
|