1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Commit Graph

88 Commits

Author SHA1 Message Date
Xinchen Hui e081c55fb5 Merge branch 'PHP-5.3' into PHP-5.4 2012-10-10 10:31:31 +08:00
Xinchen Hui 610c7fbe7b Remove executable permission on phpt 2012-10-10 10:27:49 +08:00
Gustavo André dos Santos Lopes 3e62aae1b4 Fix bug #62112: number_format() is not binary safe
The bug report actually urges PHP 5.3's behavior to be
reinstated -- that is, make "\0", when used as a separator,
be the same as no separator at all. I believe that is not a
proper course of action and that "\0" being interpreted as
no seperator was a bug in PHP 5.3.

Using "" for no separator, in both 5.3 and 5.4, before and
after this change, causes no separator to be used, so
there is no functionality loss.
2012-05-23 11:37:27 +02:00
Stanislav Malyshev 9d52e9b15f test fixes on Darwin 2011-08-31 07:10:17 +00:00
Martin Jansen 41dbe39471 MFB: Fixed two failing tests that were caused by arbitrarily chosen
but apparently bogus upper resp. lower limits for mt_rand().
2011-05-14 20:38:47 +00:00
Martin Jansen 2ce1fd71ea Fixed two failing tests that were caused by arbitrarily chosen
but apparently bogus upper resp. lower limits for mt_rand().
2011-05-14 20:29:46 +00:00
Adam Harvey d2263d482d Implement FR #53457 (number_format must support more than one character for
thousands separator).
2010-12-03 10:10:08 +00:00
Ilia Alshanetsky 7ab1a74f49 Additional fix for bug #52550 & fix test & warning from previous fixes 2010-08-08 15:45:02 +00:00
Ilia Alshanetsky d9af17b839 Additional fix for bug #52550 & fix test & warning from previous fixes 2010-08-08 15:45:02 +00:00
Rasmus Lerdorf 5f962f0e38 Oops, didn't mean to remove the -0 here 2009-08-10 23:18:07 +00:00
Rasmus Lerdorf d02332b43f Skip this test on osx because ceil(-0.5) doesn't return -0 like
everywhere else because of weird optimizations.
2009-08-09 05:16:17 +00:00
andy wharmby c731b2287f Fix typo in test 2009-06-16 11:37:13 +00:00
andy wharmby 1386f796d2 New 64 bit math tests. Tested on Windows, Linux and Linux 64 bit. Tests authored by Dave Kelsey 2009-06-11 21:17:00 +00:00
Matt Wilmas a80be6827d MFH: Fixed tests again after double->long conversion change (to match 5.2) 2009-06-05 17:15:33 +00:00
Matt Wilmas 26cde1ee2f MFH: Updated tests after double->long conversion change (basically to match 5.2)
# Let me know about other failing tests I missed
2009-06-04 18:25:06 +00:00
andy wharmby 84ca63c1b3 New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 17:56:28 +00:00
andy wharmby f4af0b3f39 New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 14:30:52 +00:00
andy wharmby a7bdc76551 New PHPT tests for math functions. Tested on Windows, Linux and Linux 64 bit. 2009-01-08 21:20:11 +00:00
Christian Seiler 2e32354456 - MFH: Implemented http://wiki.php.net/rfc/rounding 2008-12-02 16:27:15 +00:00
Antony Dovgal 53a957e5f8 MFH: fix bug #45712 ($something == NaN returns true with 5.3, false with 5.2.*) 2008-08-07 08:36:24 +00:00
Jani Taskinen a032e1a514 MFH:- Add test for bug #45712 2008-08-05 12:36:47 +00:00
Jani Taskinen 12c066136b MFH: Fix test (bug #44985) 2008-07-23 14:15:19 +00:00
Kalle Sommer Nielsen f61731874a Merge PHP_5_3 - Implemented Windows support for asinh(), acosh(), atanh(), log1p() and expm1()
[DOC] Merge_5_3
2008-05-05 07:29:41 +00:00
Felipe Pena 9324869ef5 Fix tests (new error message for void parameters) 2008-03-10 22:17:59 +00:00
Felipe Pena d44f4cb17b Fix test (new parameter parsing) 2008-02-21 17:47:33 +00:00
Zoe Slattery 5932b49990 Fixing 44092 2008-02-12 07:15:40 +00:00
Zoe Slattery a6fe8d8ca7 Fixing 32 bit specific 2008-02-06 09:36:58 +00:00
Zoe Slattery a111cabedc Tests for assorted Maths functions 2008-02-06 08:44:24 +00:00
Antony Dovgal b4b0816578 fix test, add 64bit version 2008-02-01 23:19:16 +00:00
Zoe Slattery 84be2df52a A few new tests for math functions - Note the "constants" test will fail on Windows - Bug 42143. 2008-02-01 17:21:18 +00:00
Zoe Slattery 1e29793386 Removing superfluous --INI-- section 2008-01-30 17:50:38 +00:00
Zoe Slattery b78b25a336 Test cases for sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh. 2007-09-04 09:01:02 +00:00
Antony Dovgal 3a46e8ab1f fix tests 2007-05-07 22:30:16 +00:00
Antony Dovgal 66859a74de fix tests 2007-04-26 23:30:00 +00:00
Hannes Magnusson b3a914aca8 Fix test (bug#39097) 2006-10-15 13:43:45 +00:00
Hannes Magnusson 2d3056e94f MFH:
- Fixed bug #33895 (missing math constants).
 - Remove M_PI from math.c (its defined in php_math.h)
2006-08-27 19:14:43 +00:00
Antony Dovgal 8a58105f42 MFH: use set_time_limit(), this test takes forever on AIX 2006-03-22 19:27:47 +00:00
foobar 3982f722c2 Skip test on solaris 2005-08-05 09:19:43 +00:00
Andrey Hristov 0e459321bf move math_standard_deviation and math_variance to the stats PECL extension 2005-05-13 10:11:19 +00:00
Andrey Hristov 0c268fa0f7 fix the test too 2005-05-10 15:27:49 +00:00
Andrey Hristov 2c0959689b add possibility to calculate the standard deviation and the variance
on a sample - the formulae are slightly different.
2005-05-02 12:29:38 +00:00
Andrey Hristov 7a4eb25870 add also math_variance() which uses the same calculation as math_std_dev() 2005-05-02 12:12:04 +00:00
Andrey Hristov 6141c5690d fix division by zero. throw an warning if the array is empty. 2005-05-02 11:01:14 +00:00
Andrey Hristov fb0c19da1c add math_std_dev() 2005-05-02 09:17:49 +00:00
foobar 32d86482cc update test to include negative floats as strings too 2005-01-10 16:00:08 +00:00
Magnus M��tt� 774a978ea9 Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:34:22 +00:00
Ilia Alshanetsky cc17322c14 MFB: test fix. 2004-12-14 17:43:53 +00:00
Derick Rethans b6f9b5c693 - Added testcase for bug #30695 2004-11-29 10:15:03 +00:00
foobar 36a76f403a Test for bug #30069 2004-09-15 13:54:16 +00:00
Marcus Boerger 29cfd6d24f - Remove unused blocks 2004-05-19 08:56:50 +00:00