[RFC] [VOTE] Change the edge case of round()

php.internals

Saki Takamachi

2 years ago
Hi internals, I started voting on my RFC "Change the edge case of round()”. Voting will end December 8th, 00:00 GMT. https://wiki.php.net/rfc/change_the_edge_case_of_round Regards. Saki

Jakub Zelenka

2 years ago
On Fri, Nov 24, 2023 at 12:31 AM Saki Takamachi <saki@sakiot.com> wrote:
> Hi internals, > > I started voting on my RFC "Change the edge case of round()”. > > Voting will end December 8th, 00:00 GMT. > > https://wiki.php.net/rfc/change_the_edge_case_of_round > >
I have been thinking about this one for a bit and I voted no at the end. I would probably pick the new behaviour if designing a new function like this but considering that it's been around for long time in this form, I don't think it's worth to be changed as it introduces slight BC break that might difficult to figure out. Also the old behaviour might be more intuitive for users so it does not seem completely wrong to me to keep it. Cheers Jakub

Derick Rethans

2 years ago
On 24 November 2023 00:31:16 GMT, Saki Takamachi <saki@sakiot.com> wrote:
>Hi internals, > >I started voting on my RFC "Change the edge case of round()”. > >Voting will end December 8th, 00:00 GMT. > >https://wiki.php.net/rfc/change_the_edge_case_of_round > >Regards. > >Saki >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: https://www.php.net/unsub.php
I've voted no, but only because I think that because this is technically a documented (through RFC) BC break, it should wait for PHP 9, and not for any 8.*. cheers Derick

Stas Malyshev

2 years ago
Hi!
> I've voted no, but only because I think that because this is > technically a documented (through RFC) BC break, it should wait for > PHP 9, and not for any 8.*.
I think so too, it's a frequently used function, and while the argument for the change look convincing, changing it an advanced point version still sounds like not a good idea.
-- Stas Malyshev smalyshev@gmail.com

Saki Takamachi

2 years ago
Hi all, Voting is now closed. As a result of the vote, this RFC was rejected. (7 in favor, 8 against) Therefore, as stated in the RFC, the following pull request will be adopted to fix the bug in `round()`. https://github.com/php/php-src/pull/12268 Thank you for all your votes. Regards. Saki