1--TEST--
2Test array_sum()
3--INI--
4precision=14
5memory_limit=128M
6--FILE--
7<?php
8$i = 0;
9while ($i++ < 1000) {
10	$a[] = $i;
11	$b[] = (string)$i;
12}
13$s1 = array_sum($a);
14$s2 = array_sum($b);
15var_dump($s1, $s2);
16
17$j = 0;
18while ($j++ < 100000) {
19	$c[] = $j;
20	$d[] = (string) $j;
21}
22$s3 = array_sum($c);
23$s4 = array_sum($d);
24var_dump($s3, $s4);
25?>
26--EXPECTF--
27int(500500)
28int(500500)
29%st(5000050000)
30%st(5000050000)
31