mirror of
https://github.com/php/php-src.git
synced 2026-04-20 06:21:12 +02:00
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
246 B
PHP
19 lines
246 B
PHP
--TEST--
|
|
Incorrect NOP removal on jump to NOP
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
function test(int $i) : int {
|
|
if ($i == 1) {
|
|
$x = $i + 1;
|
|
}
|
|
return $i;
|
|
}
|
|
var_dump(test(42));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(42)
|