xref: /php-src/ext/gmp/tests/gh16890.phpt (revision cfcf5cfd)
1--TEST--
2GH-16890 (array_sum() with GMP can loose precision (LLP64))
3--EXTENSIONS--
4gmp
5--FILE--
6<?php
7$large_int_string = (string) (PHP_INT_MAX - 1);
8var_dump(array_sum([new GMP($large_int_string), 1]) === PHP_INT_MAX);
9?>
10--EXPECT--
11bool(true)
12