]> granicus.if.org Git - php/commitdiff
MFH: Do not rely on handling of integers which might be outside the
authorJoe Orton <jorton@php.net>
Tue, 31 Aug 2004 12:11:06 +0000 (12:11 +0000)
committerJoe Orton <jorton@php.net>
Tue, 31 Aug 2004 12:11:06 +0000 (12:11 +0000)
range of a 32-bit signed long.

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)