mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
17 lines
195 B
PHP
17 lines
195 B
PHP
--TEST--
|
|
Bug #76074 (opcache corrupts variable in for-loop)
|
|
--FILE--
|
|
<?php
|
|
|
|
function test(int $nr) {
|
|
for ($i = $nr; $i <= $nr + 1; $i++)
|
|
var_dump($i);
|
|
}
|
|
|
|
test(1);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
int(2)
|