diff options
author | Dmitry Stogov <dmitry@zend.com> | 2020-02-07 13:36:52 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2020-02-07 13:36:52 +0300 |
commit | 64b40f69dca440e86e608847a39b795aedf75861 (patch) | |
tree | 8662ed948ea4001fb572cdd7e672eb769361dc6b /UPGRADING | |
parent | ad3f7682538604302ee6c4d4513e7efd06f01f02 (diff) | |
download | php-git-64b40f69dca440e86e608847a39b795aedf75861.tar.gz |
Make ASSIGN, ASSIGN_OP, INC and DEC opcodes to return IS_TMP_VAR instead of IS_VAR.
This helps to avoid unnecessary IS_REFERENCE checks.
This changes some notices "Only variables should be passed by reference" to exception "Cannot pass parameter %d by reference".
Also, for consistency, compile-time fatal error "Only variables can be passed by reference" was converted to exception "Cannot pass parameter %d by reference"
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -125,6 +125,11 @@ PHP 8.0 UPGRADE NOTES warning. . Uncaught exceptions now go through "clean shutdown", which means that destructors will be called after an uncaught exception. + . Compile time fatal error "Only variables can be passed by reference" has been + delayed until run-time and converted to "Cannot pass parameter by reference" + exception. + . Some "Only variables should be passed by reference" notices have been converted + to "Cannot pass parameter by reference" exception. - COM: . Removed the ability to import case-insensitive constants from type |