summaryrefslogtreecommitdiff
path: root/Zend/tests/int_overflow_64bit.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-12-24 18:09:50 +0000
committerDmitry Stogov <dmitry@php.net>2007-12-24 18:09:50 +0000
commited5a424b4f419ba293f0d4ea31cfb98b83ec92c8 (patch)
tree8aa61e0ee0979864c7dce8b1e9ed3da33e2d75ef /Zend/tests/int_overflow_64bit.phpt
parent7c75fe7b8ce1531924bc71713ee34dceaeb9956c (diff)
downloadphp-git-ed5a424b4f419ba293f0d4ea31cfb98b83ec92c8.tar.gz
Additional fix for bug #42868
Diffstat (limited to 'Zend/tests/int_overflow_64bit.phpt')
-rw-r--r--Zend/tests/int_overflow_64bit.phpt18
1 files changed, 11 insertions, 7 deletions
diff --git a/Zend/tests/int_overflow_64bit.phpt b/Zend/tests/int_overflow_64bit.phpt
index 306fbae602..769b17926e 100644
--- a/Zend/tests/int_overflow_64bit.phpt
+++ b/Zend/tests/int_overflow_64bit.phpt
@@ -6,11 +6,13 @@ testing integer overflow (64bit)
<?php
$doubles = array(
- 9223372036854775808,
- 9223372036854775809,
- 9223372036854775818,
- 9223372036854775908,
- 9223372036854776808,
+ PHP_INT_MAX,
+ PHP_INT_MAX + 1,
+ PHP_INT_MAX + 1000,
+ PHP_INT_MAX * 2 + 4,
+ -PHP_INT_MAX -1,
+ -PHP_INT_MAX -2,
+ -PHP_INT_MAX -1000,
);
foreach ($doubles as $d) {
@@ -21,8 +23,10 @@ foreach ($doubles as $d) {
echo "Done\n";
?>
--EXPECTF--
-int(-9223372036854775808)
-int(-9223372036854775808)
+int(9223372036854775807)
+int(9223372036854775807)
+int(9223372036854775807)
+int(9223372036854775807)
int(-9223372036854775808)
int(-9223372036854775808)
int(-9223372036854775808)