]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Sun, 22 Feb 2004 20:04:31 +0000 (20:04 +0000)
committerSVN Migration <svn@php.net>
Sun, 22 Feb 2004 20:04:31 +0000 (20:04 +0000)
tests/lang/bug27354.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug27354.phpt b/tests/lang/bug27354.phpt
new file mode 100644 (file)
index 0000000..bcf68d4
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+Bug #27354 (Modulus operator crashes PHP)
+--FILE--
+<?php
+       var_dump(-2147483647 % -1);
+       var_dump(-2147483649 % -1);
+       var_dump(-2147483648 % -1);
+       var_dump(-2147483648 % -2);
+?>
+--EXPECT--
+int(0)
+int(0)
+int(0)
+int(0)