History log of /PHP-8.1/ext/standard/math.c (Results 176 – 200 of 298)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 31a8c589 05-May-2005 foobar

fix proto


# 7a0b3edb 02-May-2005 Andrey Hristov

fixed div by zero
#div by zero is bad...div by zero is bad...bad


# 2c095968 02-May-2005 Andrey Hristov

add possibility to calculate the standard deviation and the variance
on a sample - the formulae are slightly different.


# 7a4eb258 02-May-2005 Andrey Hristov

add also math_variance() which uses the same calculation as math_std_dev()


# 6141c569 02-May-2005 Andrey Hristov

fix division by zero. throw an warning if the array is empty.


# fb0c19da 02-May-2005 Andrey Hristov

add math_std_dev()


Revision tags: RELEASE_0_3, php-5.0.4, php-4.3.11, php-5.0.4RC2, php-4.3.11RC2, php-5.0.4RC1, php-4.3.11RC1, RELEASE_0_2_4, RELEASE_0_2_3, RELEASE_0_2_2, RELEASE_0_2_1, RELEASE_0_2, php-5.0.3, php-4.3.10
# 6d7cac77 14-Dec-2004 Ilia Alshanetsky

Fixed bug #28228 (NULL decimal separator is not being handled correctly).


Revision tags: SQLITE_4_3_20041227, php-5.0.3RC2, php-4.3.10RC2, php-5.0.3RC1, php-4.3.10RC1, PRE_NEW_VM_GEN_PATCH, php-5.0.2, php-4.3.9
# 31a17d90 20-Sep-2004 Wez Furlong

Enable hypot for all


Revision tags: php-5.0.2RC1, php-4.3.9RC3, PRE_ZEND_VM_DISPATCH_PATCH, php-4.3.9RC2, php-5.0.1, php-5.0.1RC2, php-4.3.9RC1, php-5.0.1RC1, RELEASE_0_1
# 56f8195f 19-Jul-2004 Andi Gutmans

- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have

- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.

show more ...


Revision tags: php-5.0.0RC4, php-5.0.0, php-4.3.8
# b9fc9a6a 10-Jun-2004 Ilia Alshanetsky

hypot() is not experimental.


Revision tags: php-5.0.0RC3, php-5.0.0RC3RC2, php-4.3.7, php-5.0.0RC3RC1, php-4.3.7RC1
# 396bf393 24-May-2004 Ilia Alshanetsky

Fixed bug #28508 (Do not make hypot() available if not supported by libc).


Revision tags: RELEASE_0_1_1
# 91e9545f 30-Apr-2004 Ilia Alshanetsky

Fixed bug #28228 (number_format() does not allow empty decimal separator).


Revision tags: php-5.0.0RC2, php-5.0.0RC2RC2, php-4.3.6, php-5.0.0RC2RC1, php-4.3.6RC3, php-4.3.6RC2, php-4.3.6RC1, php-4.3.5, php-4.3.5RC4, php-5.0.0RC1, php-5.0.0RC1RC2, php-5.0.0RC1RC1
# cc924cad 10-Mar-2004 Ard Biesheuvel

Nuke unused vars


# e6281ab3 10-Mar-2004 Ard Biesheuvel

Don't use fp arithmetic for int results
# FP arithmetic is not accurate enough on 64-bit archs
# This patch relies on ZEND_SIGNED_MULTIPLY_LONG(),
# so that should be fixed as well.


Revision tags: RELEASE_0_2_0, php-4.3.5RC3, php-5.0.0b4, php-5.0.0b4RC1, php-4.3.5RC2, RELEASE_1_3b6, php_ibase_before_split, php-4.3.5RC1
# dbeb4158 08-Jan-2004 Andi Gutmans

- A belated happy holidays and PHP 5


Revision tags: php-5.0.0b3, php-5.0.0b3RC2, php-5.0.0b3RC1
# 2a58fb80 18-Nov-2003 Ilia Alshanetsky

Fixed Bug #25694 (round() and number_format() give inconsistent results).


Revision tags: php-4.3.4, php-4.3.4RC3, php-5.0.0b2, RELEASE_2_0_0RC1, php-5.0.0b2RC1, php-4.3.4RC2, RELEASE_1_3b3, BEFORE_HANDLERS_RESHUFFLE, RELEASE_1_3b2, php-4.3.4RC1, RELEASE_0_7
# 436a0717 28-Aug-2003 Sascha Schumann

fix format strings


Revision tags: php-4.3.3, php-4.3.3RC4
# 66b910e8 09-Aug-2003 Marcus Boerger

Bugfix #24142, part 2


# 370ea1c8 08-Aug-2003 Ilia Alshanetsky

Avoid a round() bug that occurs due to over optimization of C code by gcc.
This bug was confirmed across multiple systems with gcc 2.95.3 & 3.X+


Revision tags: RELEASE_0_5_3, php-4.3.3RC3, RELEASE_0_5_2, RELEASE_1_2b5, BEFORE_ARG_INFO, php-4.3.3RC2, php-5.0.0b1, php-4.3.3RC1
# f68c7ff2 10-Jun-2003 James Cox

updating license information in the headers.


Revision tags: BEFORE_FD_REAPPLY, php-4.3.2, php-4.3.2RC4, BEFORE_FD_REVERT, php-4.3.2RC3, RELEASE_0_9b, SPL_ALPHA, php-4.3.2RC2, RELEASE_0_6, RELEASE_0_5, init
# 0e6fca4f 18-Mar-2003 Stig Bakken

* email address change


Revision tags: php-4.3.2RC1, php-4.3.1, PHP_5_0_dev_before_13561_fix, PHP_4_3_before_13561_fix
# d4e143b8 16-Jan-2003 Edin Kadribasic

Fixed bug #21648


# cf9f784e 10-Jan-2003 Wez Furlong

Fix the number format fix when the number of decimal places is 0.
# Thanks to Edin for his telepathy!


# d8fbd1ac 09-Jan-2003 Wez Furlong

Fix Bug #21523 - number_format could cause a memory allocation for a
negative memory size in situations where the sprintf implementation of the
host system generated less decimal places than

Fix Bug #21523 - number_format could cause a memory allocation for a
negative memory size in situations where the sprintf implementation of the
host system generated less decimal places than were requested.

Resolved this issue by making number_format examine the string returned
by spprintf and have it pad to the correct number of decimal places.

Added a test-case based on the bug report; the length of decimal places
required to trigger this bug is sprintf implementation dependent; as the
implementation is now using spprintf (provided by PHP), that number is
78 digits (NDIG - 2).

# I played with the idea of enhancing sprintf to do the equivalent, but
# it was too much effort considering that the precision of floats/doubles
# is not good enough to warrant it.

# This fix could do with some QA from someone else to make sure there are
# no memory bounds problems and then MFH it to PHP_4_3

show more ...


# b506f5c8 31-Dec-2002 Sebastian Bergmann

Bump year.


12345678910>>...12