blob: 7fba940e97b543b2158e529443a7ca12bddaeb3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Bug #75938: Modulus value not stored in variable
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--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)
|