mirror of
https://github.com/php/php-src.git
synced 2026-04-14 03:22:58 +02:00
The negative range inference implementation does not work correctly, and it's not clear right now how it can be fixed. As such, disable it entirely for now.
27 lines
298 B
PHP
27 lines
298 B
PHP
--TEST--
|
|
Incorrect negative range inference
|
|
--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)
|