1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00
Files
archived-php-src/ext/opcache/tests/bug75938.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

19 lines
323 B
PHP

--TEST--
Bug #75938: Modulus value not stored in variable
--EXTENSIONS--
opcache
--FILE--
<?php
function borken($columns) {
$columns = (int) $columns;
if ($columns < 1) return 0;
$count = count([1,2,3,4,5]);
var_dump($mod = ($count % $columns));
var_dump($mod);
}
borken(2);
?>
--EXPECT--
int(1)
int(1)