dis-bench / src /php /php-src /ext /opcache /tests /opt /gh8074.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
220 Bytes
--TEST--
GH-8074 (Wrong type inference of range() result)
--FILE--
<?php
function test() {
$array = range(1, "2");
foreach ($array as $i) {
var_dump($i + 1);
}
}
test();
?>
--EXPECT--
int(2)
int(3)