1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00
Files
archived-php-src/ext/opcache/tests/neg_range_inference.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

29 lines
321 B
PHP

--TEST--
Incorrect negative range inference
--EXTENSIONS--
opcache
--FILE--
<?php
function test() {
for ($i = 0; $i < 10; $i++) {
if ($i != 5) {
$t = (int) ($i < 5);
var_dump($t);
}
}
}
test();
?>
--EXPECT--
int(1)
int(1)
int(1)
int(1)
int(1)
int(0)
int(0)
int(0)
int(0)