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 20e15f5 commit e7386aaCopy full SHA for e7386aa
ext/gmp/tests/gmp_php_int_max.phpt
@@ -0,0 +1,26 @@
1
+--TEST--
2
+PHP_INT_MAX tests
3
+--SKIPIF--
4
+<?php if (!extension_loaded("gmp")) print "skip"; ?>
5
+--FILE--
6
+<?php
7
+
8
+var_dump(gmp_mul(PHP_INT_MAX, PHP_INT_MAX));
9
+var_dump(gmp_add(PHP_INT_MAX, PHP_INT_MAX));
10
+var_dump(gmp_mul(PHP_INT_MAX, PHP_INT_MIN));
11
+?>
12
+DONE
13
+--EXPECTF--
14
+object(GMP)#%d (%d) {
15
+ ["num"]=>
16
+ string(38) "85070591730234615847396907784232501249"
17
+}
18
19
20
+ string(20) "18446744073709551614"
21
22
23
24
+ string(39) "-85070591730234615856620279821087277056"
25
26
0 commit comments