#
664c1d18 |
| 28-Jul-2024 |
Pol Dellaiera |
Fix: add missing `PHPAPI` (#15142) Issue introduced in commit https://github.com/php/php-src/commit/5905857fd2652585989ed03e5a5b0beea89ab18e from PR https://github.com/php/php-src/pull/14833
|
#
5905857f |
| 18-Jul-2024 |
Tim Düsterhus |
RFC: Add the RoundingMode enum (#14833) see https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum Co-authored-by: Saki Takamachi <saki@php.net> Co-author
RFC: Add the RoundingMode enum (#14833) see https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum Co-authored-by: Saki Takamachi <saki@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
show more ...
|
#
23afe57f |
| 23-Dec-2023 |
Jorg Sowa |
Added deprecation Division by zero when using power with zero as base and negative exponent RFC: https://wiki.php.net/rfc/raising_zero_to_power_of_negative_number Closes GH-13128
|
#
2e50371a |
| 08-Mar-2024 |
Saki Takamachi <34942839+SakiTakamachi@users.noreply.github.com> |
round: Abolished the CPU rounding mode change and modified it to a different logic. (#13435) * Removed changing CPU round mode and added processing to detect and correct errors.
|
#
447e6428 |
| 08-Mar-2024 |
Saki Takamachi |
Revert "Fixed to avoid incorrect optimization with llvm15.0.0" This reverts commit 16d0394ef48ba91a4284280b98ac22d70dea6490.
|
#
16d0394e |
| 20-Feb-2024 |
Saki Takamachi |
Fixed to avoid incorrect optimization with llvm15.0.0
|
#
703ead5a |
| 22-Feb-2024 |
Saki Takamachi |
Extend the maximum precision round can handle by one digit Closes #12222
|
#
631bc816 |
| 06-Feb-2024 |
Ilija Tovilo |
Implement stackless internal function calls Co-authored-by: Dmitry Stogov <dmitry@zend.com> Closes GH-12461
|
#
78970ef6 |
| 03-Feb-2024 |
Saki Takamachi |
Fix GH-12143: Optimize round Fixed an error in the result due to "pre-rounding" of the round function. "Pre-rounding" has been abolished and the method of comparing numbers has
Fix GH-12143: Optimize round Fixed an error in the result due to "pre-rounding" of the round function. "Pre-rounding" has been abolished and the method of comparing numbers has been changed. Closes GH-12268.
show more ...
|
#
94ddc74c |
| 21-Dec-2023 |
Jorg Adam Sowa |
RFC: Add 4 new rounding modes to round() function (#12056) https://wiki.php.net/rfc/new_rounding_modes_to_round_function Co-authored-by: Tim Düsterhus <tim@bastelstu.be>
|
#
b3f259d6 |
| 30-Sep-2023 |
Marc Bennewitz |
number_format: cast large floats within range of int to int This prevents loosing precision for numbers above 2^52. Closes GH-12333
|
#
fcae5880 |
| 02-Oct-2023 |
Ilija Tovilo |
Fix GCC warning in math.c
|
#
9e66bc9b |
| 24-Sep-2023 |
Tim Düsterhus |
abs: Make `value == ZEND_LONG_MIN` an unexpected branch As suggested in GH-12286. This results in slightly better assembly in clang, because the expected case will be handled by a forwar
abs: Make `value == ZEND_LONG_MIN` an unexpected branch As suggested in GH-12286. This results in slightly better assembly in clang, because the expected case will be handled by a forward jump that is not taken.
show more ...
|
#
86553526 |
| 24-Sep-2023 |
Tim Düsterhus |
round: Make `fractional == 0.5` an unexpected branch This does indeed result in slightly better assembly for clang.
|
#
82aad0b4 |
| 24-Sep-2023 |
Tim Düsterhus |
Unify type juggling in math.c (#12286) - Consistently use a `switch()` with `EMPTY_SWITCH_DEFAULT_CASE();` - Consistently use `zval_get_double()` for multi-type / non-double zvals
Unify type juggling in math.c (#12286) - Consistently use a `switch()` with `EMPTY_SWITCH_DEFAULT_CASE();` - Consistently use `zval_get_double()` for multi-type / non-double zvals instead of casting manually.
show more ...
|
#
3d857d5b |
| 22-Sep-2023 |
Tim Düsterhus |
round(): Validate the rounding mode (#12252)
|
#
9652889b |
| 19-Sep-2023 |
Tim Düsterhus |
Reimplement `php_round_helper()` using `modf()` (#12220) This change makes the implementation much easier to understand, by explicitly handling the various cases. It fixes round
Reimplement `php_round_helper()` using `modf()` (#12220) This change makes the implementation much easier to understand, by explicitly handling the various cases. It fixes rounding for `0.49999999999999994`, because no loss of precision happens by adding / subtracing `0.5` before turning the result into an integral float. Instead the fractional parts are explicitly compared. see GH-12143 (this fixes one of the reported cases) Closes GH-12159 which was an alternative attempt to fix the rounding issue for `0.49999999999999994`
show more ...
|
#
429f20e9 |
| 16-Jul-2023 |
Marc Bennewitz |
Prevent int overflow on $decimals in number_format Closes GH-11714. Closes GH-11649.
|
#
591f3f61 |
| 01-Jul-2023 |
Marc Bennewitz |
Prevent decimal int precision loss in number_format() Closes GH-11584
|
#
0313640b |
| 13-Jul-2023 |
Jorg Adam Sowa |
Reorder list construction in the function php_intpow10 (#11683) * Reorder array construction in the function * Optimize function php_intlog10abs
|
#
e85fb090 |
| 19-Jun-2023 |
Marc Bennewitz |
number_format() Support rounding negative places Closes GH-11487
|
#
c8955c07 |
| 16-Jan-2023 |
Christoph M. Becker |
Revert GH-10220 Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>. This reverts commit ecc880f491d66081298a16634629f149459706a9. This reverts commit 588a07
Revert GH-10220 Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>. This reverts commit ecc880f491d66081298a16634629f149459706a9. This reverts commit 588a07f7371ee2b5fac17de147926780e427fae6. This reverts commit f377e15751d3aa48b69cd9bcc366ede7803d511f. This reverts commit b4ba16fe189b109144aff669e11d81365160104b. This reverts commit 694ec1deea36e366b28b6349a52be49824e1a1a8. This reverts commit 6b34de8eba9f66882ae16e6073af28783670ac53. This reverts commit aa1cd02a4367834026ea2205ea13a2f904455aa1. This reverts commit 308fd311ea6fcf3094b448df7f2b264f08e4fe4f. This reverts commit 16203b53e1822a37b6ba6f2ab198bb435d05fdad. This reverts commit 738fb5ca5412f5e833a7fab82b11519e635a3357. This reverts commit 9fdbefacd3c382d731aa175b7bdc002ec9cb2b30. This reverts commit cd4a7c1d90562ebb5f89caf94d00d579631b9fbe. This reverts commit 928685eba2b2f0ded90e7f78fd806ea164002f6e. This reverts commit 01e5ffc85cd4357fd7b5b7ceefa29f2d10ca26b7.
show more ...
|
#
308fd311 |
| 04-Jan-2023 |
Max Kellermann |
ext/{standard,json,random,...}: add missing includes
|
Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1, php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1, php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30, php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28, php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15, php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6, php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32, php-7.4.25, php-8.0.12, php-8.1.0RC4, php-8.0.12RC1, php-7.4.25RC1, php-8.1.0RC3, php-8.0.11, php-7.4.24, php-7.3.31, php-8.1.0RC2, php-7.4.24RC1, php-8.0.11RC1, php-8.1.0RC1, php-7.4.23, php-8.0.10, php-7.3.30, php-8.1.0beta3, php-8.0.10RC1, php-7.4.23RC1, php-8.1.0beta2, php-8.0.9, php-7.4.22, php-8.1.0beta1, php-7.4.22RC1, php-8.0.9RC1, php-8.1.0alpha3, php-7.4.21, php-7.3.29, php-8.0.8, php-8.1.0alpha2, php-7.4.21RC1, php-8.0.8RC1, php-8.1.0alpha1, php-8.0.7, php-7.4.20, php-8.0.7RC1, php-7.4.20RC1 |
|
#
01b3fc03 |
| 06-May-2021 |
KsaR |
Update http->https in license (#6945) 1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https. 2. Update few license 3.0 to 3.01 as
Update http->https in license (#6945) 1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https. 2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier". 3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted. 4. fixed indentation in some files before |
show more ...
|
Revision tags: php-8.0.6, php-7.4.19, php-7.4.18, php-7.3.28, php-8.0.5, php-8.0.5RC1, php-7.4.18RC1, php-8.0.4RC1, php-7.4.17RC1, php-8.0.3, php-7.4.16, php-8.0.3RC1, php-7.4.16RC1, php-8.0.2, php-7.4.15, php-7.3.27, php-8.0.2RC1, php-7.4.15RC2, php-7.4.15RC1, php-8.0.1, php-7.4.14, php-7.3.26, php-7.4.14RC1, php-8.0.1RC1, php-7.3.26RC1, php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24, php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1, php-7.2.34, php-8.0.0rc1 |
|
#
5caaf40b |
| 29-Sep-2020 |
George Peter Banyard |
Introduce pseudo-keyword ZEND_FALLTHROUGH And use it instead of comments
|