mirror of
https://github.com/php/php-src.git
synced 2025-01-10 04:54:47 +08:00
75bc3446f8
All these tests are meant to run with OPcache available, and some will even fail inevitably without it, so we add OPcache as SKIPIF requirement.
19 lines
243 B
PHP
19 lines
243 B
PHP
--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)
|