We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ac8a0 commit f8b1645Copy full SHA for f8b1645
tests/lang/bug27354.phpt
@@ -1,18 +1,16 @@
1
--TEST--
2
Bug #27354 (Modulus operator crashes PHP)
3
---XFAIL--
4
-This doesn't produce a warning on 64bits strangely
5
--FILE--
6
<?php
7
var_dump(-2147483647 % -1);
8
-var_dump(-9_223_372_036_854_775_900 % -1); // Min value for 64bit int -1
+var_dump(-9_223_372_036_860_776_000 % -1); // Min value for 64bit int -1
9
var_dump(-2147483648 % -1);
10
var_dump(-2147483648 % -2);
11
?>
12
--EXPECTF--
13
int(0)
14
15
-Deprecated: Implicit conversion from non-compatible float -9.223372036854776E+18 to int in %s on line %d
+Deprecated: Implicit conversion from non-compatible float -9.223372036860776E+18 to int in %s on line %d
16
17
18
0 commit comments