1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/opcache/tests/opt/inference_019.phpt
T
Dmitry Stogov 567213c32a Drop range inference for IS_NULL/IS_FALSE/IS_TRUE.
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.
2022-08-23 11:22:31 +03:00

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