From f39eed623d01cfa707545001297c51237fe015b0 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 16 Dec 2005 15:52:54 +0000 Subject: [PATCH] MF51: fix test, add new one --- ext/standard/tests/array/bug35014.phpt | 6 ++-- ext/standard/tests/array/bug35014_64bit.phpt | 36 ++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 ext/standard/tests/array/bug35014_64bit.phpt diff --git a/ext/standard/tests/array/bug35014.phpt b/ext/standard/tests/array/bug35014.phpt index 213bacae3c..99ef0f7eba 100644 --- a/ext/standard/tests/array/bug35014.phpt +++ b/ext/standard/tests/array/bug35014.phpt @@ -1,5 +1,7 @@ --TEST-- -Bug #35014 (array_product() always returns 0) +Bug #35014 (array_product() always returns 0) (32bit) +--SKIPIF-- + --INI-- precision=14 --FILE-- @@ -22,7 +24,7 @@ foreach ($tests as $v) { ?> --EXPECTF-- -Warning: array_product(): The argument should be an array in %s/bug35014.php on line 15 +Warning: array_product(): The argument should be an array in %s on line %d NULL int(0) int(0) diff --git a/ext/standard/tests/array/bug35014_64bit.phpt b/ext/standard/tests/array/bug35014_64bit.phpt new file mode 100644 index 0000000000..a5b8da8a3c --- /dev/null +++ b/ext/standard/tests/array/bug35014_64bit.phpt @@ -0,0 +1,36 @@ +--TEST-- +Bug #35014 (array_product() always returns 0) (64bit) +--SKIPIF-- + +--INI-- +precision=14 +--FILE-- + +--EXPECTF-- + +Warning: array_product(): The argument should be an array in %s on line %d +NULL +int(0) +int(0) +int(3) +int(9) +float(1) +int(9999999800000001) +float(2.8404260053903E+20) +int(8589934590) -- 2.50.1