]> granicus.if.org Git - php/commitdiff
Do not rely on behaviour of integers which might be greater than
authorJoe Orton <jorton@php.net>
Tue, 31 Aug 2004 10:23:22 +0000 (10:23 +0000)
committerJoe Orton <jorton@php.net>
Tue, 31 Aug 2004 10:23:22 +0000 (10:23 +0000)
LONG_MAX on 32-bit architectures.

tests/lang/bug27354.phpt

index bcf68d426561e84463c71adfcac9576b7b64da4a..e10ad9c924024de72b8bc78baf3f9b629f7354d4 100644 (file)
@@ -7,8 +7,8 @@ Bug #27354 (Modulus operator crashes PHP)
        var_dump(-2147483648 % -1);
        var_dump(-2147483648 % -2);
 ?>
---EXPECT--
-int(0)
-int(0)
-int(0)
-int(0)
+--EXPECTF--
+int(%i)
+int(%i)
+int(%i)
+int(%i)