Skip to content

Commit fad899e

Browse files
[RFC] Support object types in BCMath (#13741)
Added BcMath\Number class. It is an immutable object, has methods that are equivalent to existing BCMath calculation functions, and can also be calculated using operators. The existing BCMath function returned a string for each calculation, but this class returns an object. RFC: https://wiki.php.net/rfc/support_object_type_in_bcmath, https://wiki.php.net/rfc/fix_up_bcmath_number_class --------- Co-authored-by: Niels Dossche <[email protected]>
1 parent 13f0411 commit fad899e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+8063
-37
lines changed

NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
- BCMath:
66
. Fixed LONG_MAX in BCMath ext. (Saki Takamachi)
77
. Fixed bcdiv() div by one. (Saki Takamachi)
8+
. [RFC] Support object types in BCMath. (Saki Takamachi)
89

910
- Core:
1011
. Fixed bug GH-15330 (Do not scan generator frames more than once). (Arnaud)

UPGRADING

+9
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,15 @@ PHP 8.4 UPGRADE NOTES
873873
7. New Classes and Interfaces
874874
========================================
875875

876+
- BCMath:
877+
. Added BcMath\Number class. It is an immutable object, has methods that are
878+
equivalent to existing BCMath calculation functions, and can also be calculated
879+
using operators.
880+
The existing BCMath function returned a string for each calculation, but this
881+
class returns an object.
882+
RFC: https://wiki.php.net/rfc/support_object_type_in_bcmath,
883+
https://wiki.php.net/rfc/fix_up_bcmath_number_class
884+
876885
- Core:
877886
. New RequestParseBodyException.
878887
RFC: https://wiki.php.net/rfc/rfc1867-non-post

0 commit comments

Comments
 (0)