xref: /PHP-8.2/ext/opcache/tests/bug75938.phpt (revision e9f783fc)
1--TEST--
2Bug #75938: Modulus value not stored in variable
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7function borken($columns) {
8    $columns = (int) $columns;
9    if ($columns < 1) return 0;
10    $count	= count([1,2,3,4,5]);
11    var_dump($mod = ($count % $columns));
12    var_dump($mod);
13}
14borken(2);
15?>
16--EXPECT--
17int(1)
18int(1)
19