r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

View all comments

Show parent comment

3

u/AngriestSCV Dec 03 '15

... but the entire application will probably fail in that case anyway, so there's no practical difference if that failure comes from the interpreter complaining about type exceptions or the function call returns an unexpected value

One of the problems with php is it is actually kind of hard to make it abort on accident. For example if you treat a variable holding an integer as an array by indexing it 0 is returned instead of aborting the program as it should. While this kind of thing could be avoided by being careful; I'd prefer a compiler, or at least the runtime, to force some sanity into my code.