Skip to content

Commit e9e2cf0

Browse files
committed
Fix test wrt. deprecation of float to int conversions
Instead of passing `1073746742.75` to an int parameter, we just do the calculation upfront (and round up), since the actual calculation does not matter here anyway.
1 parent 8e688e0 commit e9e2cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sysvshm/tests/bug72858.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) != "WIN") { print "skip windows only"; }
1212
<?php
1313

1414
$v1=100;
15-
$v2=0xffffffff / 4 + 0x1337;
15+
$v2=0x4fffffff + 0x1337;
1616
shm_attach($v1,$v2);
1717

1818
?>

0 commit comments

Comments
 (0)