summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-02-07 13:36:52 +0300
committerDmitry Stogov <dmitry@zend.com>2020-02-07 13:36:52 +0300
commit64b40f69dca440e86e608847a39b795aedf75861 (patch)
tree8662ed948ea4001fb572cdd7e672eb769361dc6b /UPGRADING
parentad3f7682538604302ee6c4d4513e7efd06f01f02 (diff)
downloadphp-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--UPGRADING5
1 files changed, 5 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 20c3071bd7..00dfe8ae5d 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -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