1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Files
archived-php-src/ext/opcache/tests/jit/bug77857.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

28 lines
455 B
PHP

--TEST--
Bug #77857 (Wrong result if executed with JIT)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=64
opcache.jit=1205
--EXTENSIONS--
opcache
--FILE--
<?php
function test() {
$arr = array_fill(0, 1, 1.0);
$y = 0.0;
foreach ($arr as $v) {
$tmp = 1.0 * $v;
var_dump($tmp);
$y = $tmp/1.0;
}
return $y;
}
var_dump(test());
?>
--EXPECT--
float(1)
float(1)