mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
19 lines
221 B
PHP
19 lines
221 B
PHP
--TEST--
|
|
Incorrect NOP removal on jump to NOP
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
|
|
function test(int $i) : int {
|
|
if ($i == 1) {
|
|
$x = $i + 1;
|
|
}
|
|
return $i;
|
|
}
|
|
var_dump(test(42));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(42)
|