1--TEST-- 2Bug #35014 (array_product() always returns 0) (32bit) 3--SKIPIF-- 4<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> 5--FILE-- 6<?php 7$tests = array( 8 array(0), 9 array(3), 10 array(3, 3), 11 array(0.5, 2), 12 array(99999999, 99999999), 13 array(8.993, 7443241,988, sprintf("%u", -1)+0.44), 14 array(2,sprintf("%u", -1)), 15); 16 17foreach ($tests as $v) { 18 var_dump(array_product($v)); 19} 20?> 21--EXPECT-- 22int(0) 23int(3) 24int(9) 25float(1) 26float(9999999800000000) 27float(2.8404260053902914E+20) 28float(8589934590) 29