cvs: php-src(PHP_5_1) /ext/standard/tests/array bug35014.phpt
| From: | Jani Taskinen | Date: | Tue, 01 Nov 2005 22:39:55 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/standard/tests/array bug35014.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-34954@lists.php.net to get a copy of this message | ||
sniper Tue Nov 1 17:39:55 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/standard/tests/array bug35014.phpt
Log:
- Fixed test. Some people might actually be using php.ini-dist which
has precision set to 12. (and this test results need 14)
http://cvs.php.net/diff.php/php-src/ext/standard/tests/array/bug35014.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u
Index: php-src/ext/standard/tests/array/bug35014.phpt
diff -u php-src/ext/standard/tests/array/bug35014.phpt:1.1.2.1
php-src/ext/standard/tests/array/bug35014.phpt:1.1.2.2
--- php-src/ext/standard/tests/array/bug35014.phpt:1.1.2.1 Sun Oct 30 08:44:26 2005
+++ php-src/ext/standard/tests/array/bug35014.phpt Tue Nov 1 17:39:53 2005
@@ -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)