Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior
Hi all,
> Hi internals,
>
> Created a follow-up RFC for the BCMath\Number class. This RFC also contains proposed changes to
> GMP's bool cast. I have proposed similar changes to BCMath, so for procedural efficiency I have
> combined them into the same RFC.
>
> Note that although they are combined into one RFC, these votes are taken independently.
>
> https://wiki.php.net/rfc/fix_up_bcmath_number_class
>
> Regards,
>
> Saki
Added one more change to the RFC.
Currently, there is no other expression for comparison in PHP called "comp”. The expression
"cmp" is mainly used for functions, and the expression "compare" is used for
class methods.
e.g.
https://www.php.net/manual/ja/splpriorityqueue.compare.php
https://www.php.net/manual/ja/collator.compare.php
Therefore, follow these conventions and rename comp()
to compare()
.
Regards,
Saki
Thread (11 messages)