On Thursday, 11 January 2024 at 21:47, tag Knife <fennic...@gmail.com> wrote: > On Thu, 11 Jan 2024 at 21:29, Jorg Sowa jorg.s...@gmail.com wrote: > > > Hello everyone! > > > > I want to start the discussion on the RFC: Raising zero to the power of > > negative number > > > > Link: https://wiki.php.net/rfc/raising_zero_to_power_of_negative_number > > > > Kind regards, > > Jorg > > > IEEE 754 dictates that an infinity should be the expected output for all > these scenarios.
IEEE 754 only deals with floating point numbers, and even then if you want IEEE 754 behaviour for division you need to use fdiv() as of PHP 8.0 as any division by 0 throws this error since https://wiki.php.net/rfc/engine_warnings#division_by_zero got accepted. I think this change makes sense but would rather have an improved wording/Error as proposed by Ben. Best regards, Gina P. Banyard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php