Oh boy. It looks like Zeev has conveniently forgotten that register_globals and magic_quotes removal were a thing, both major backwards incompatible changes. Things like that need to be decided somehow, and the RFC process is the only way we have of doing that.
I think there's a very good argument to be made that converting undefined variable accesses to exceptions is not a worthwhile change ... but saying that even discussing it is off the table because "I say so"?
The most significant internal change in PHP 7 are improved implementations for several key datastructures. I have a number of blog posts on this topic, which may be of interest:
I believe this was in part for forward compatibility with generics. Foo<Bar?> would have a closing PHP tag at the end. (The opening tag is not a problem as it's already open in this context.)
In PHP 8 all internal functions/methods will have complete type information in reflection. This took a lot of effort and is not quite finished yet.
In PHP 8, a lot of things that were previously warnings are now exceptions. This includes the changes done by https://wiki.php.net/rfc/engine_warnings, but also a huge number of error conditions in standard library functions. The general guideline is that any error condition that indicates a programming error and that the programmer should never be explicitly checking for becomes an Error exception. Everything else stays as warnings. This is also still work in progress.
Generics
Oh boy. It looks like Zeev has conveniently forgotten that register_globals and magic_quotes removal were a thing, both major backwards incompatible changes. Things like that need to be decided somehow, and the RFC process is the only way we have of doing that.
I think there's a very good argument to be made that converting undefined variable accesses to exceptions is not a worthwhile change ... but saying that even discussing it is off the table because "I say so"?
Well, fuck you Zeev.
The most significant internal change in PHP 7 are improved implementations for several key datastructures. I have a number of blog posts on this topic, which may be of interest:
There have been many other optimizations as well, but the new zval representation is really at the core of these improvements.
Also helpful might be:
I believe this was in part for forward compatibility with generics.
Foo<Bar?>would have a closing PHP tag at the end. (The opening tag is not a problem as it's already open in this context.)Two major changes that are missing here:
Errorexception. Everything else stays as warnings. This is also still work in progress.