We need more BC breaks, not fewer. I'd really like to see a lot of functions that return FALSE on failure throw exceptions in the future. We could also tidy up the stdlib a bit and give primatives some OO love.
If you're going to break BC, might as well do it right.
Re:An Exceptional Change in PHP 7.0
by sarciszewski on Tuesday October 06, 2015 @10:17AM
(#10339024)
So, onwards to PHP (gr)8?
https://www.sammyk.me/security-changes-to-the-php-7-csprng-i...
You can read my arguments on the mailing list, but basically it amounted to:
If random_int() returned FALSE, $password would be the string 'aaaaaaaaaaaa' (and you'd have 12 E_WARNING errors in your log).By making it an exception, random_int() will now fail closed (kill the script by default), but the developer can still handle it gracefully.
Or something similar.Is it a BC break? Sure. Is it worth it? Oh yeah.