summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug35014.phpt
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-11-01 22:39:53 +0000
committerfoobar <sniper@php.net>2005-11-01 22:39:53 +0000
commite02f8809f119eb49ca9fde93e4abae03bdd897c2 (patch)
treec0577258de2550cf0d2bba19f112a85176f924d6 /ext/standard/tests/array/bug35014.phpt
parent1d0b88d316711dff33e0536a47626137800a98b5 (diff)
downloadphp-git-e02f8809f119eb49ca9fde93e4abae03bdd897c2.tar.gz
- Fixed test. Some people might actually be using php.ini-dist which
has precision set to 12. (and this test results need 14)
Diffstat (limited to 'ext/standard/tests/array/bug35014.phpt')
-rw-r--r--ext/standard/tests/array/bug35014.phpt21
1 files changed, 12 insertions, 9 deletions
diff --git a/ext/standard/tests/array/bug35014.phpt b/ext/standard/tests/array/bug35014.phpt
index 8599a3c7ca..213bacae3c 100644
--- a/ext/standard/tests/array/bug35014.phpt
+++ b/ext/standard/tests/array/bug35014.phpt
@@ -1,24 +1,27 @@
--TEST--
Bug #35014 (array_product() always returns 0)
+--INI--
+precision=14
--FILE--
<?php
$tests = array(
- 'foo',
- array(),
- array(0),
- array(3),
- array(3, 3),
- array(0.5, 2),
- array(99999999, 99999999),
- array(8.993, 7443241,988, sprintf("%u", -1)+0.44),
+ 'foo',
+ array(),
+ array(0),
+ array(3),
+ array(3, 3),
+ array(0.5, 2),
+ array(99999999, 99999999),
+ array(8.993, 7443241,988, sprintf("%u", -1)+0.44),
array(2,sprintf("%u", -1)),
);
foreach ($tests as $v) {
- var_dump(array_product($v));
+ var_dump(array_product($v));
}
?>
--EXPECTF--
+
Warning: array_product(): The argument should be an array in %s/bug35014.php on line 15
NULL
int(0)