mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
29 lines
321 B
PHP
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)
|