summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug76074.phpt
blob: 94c79beff6e7eb558c171990f4d2cd759804564b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #76074 (opcache corrupts variable in for-loop)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

function test(int $nr) {
    for ($i = $nr; $i <= $nr + 1; $i++)
        var_dump($i);
}

test(1);

?>
--EXPECT--
int(1)
int(2)