summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2021-03-01 13:42:34 +0300
committerDmitry Stogov <dmitry@zend.com>2021-03-01 13:42:34 +0300
commitc9a9362c78e866919630f1d78303848fba35bd0a (patch)
tree42a31a828b0fd6e9265bd20badb26196e22fe79a /UPGRADING
parent72c3ededed45fc8f2ce6f98d11f82adedc5e9763 (diff)
downloadphp-git-c9a9362c78e866919630f1d78303848fba35bd0a.tar.gz
Added UPGRADING note.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING9
1 files changed, 9 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index f5c00596e4..495b831b79 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -211,6 +211,15 @@ PHP 8.1 UPGRADE NOTES
5. Changed Functions
========================================
+- Core:
+ . Properties order used in foreach, var_dump(), serialize(), object comparison
+ etc. was changed. Now properties are naturally ordered according to their
+ declaration and inheritance. Prpoerties declared in a base class are going
+ to be before the child properties. This order is consistent with internal
+ layout of properies in zend_objct structure and repeats the order in
+ default_properties_table[] and properties_info_table[]. The old order was
+ not documented and was caused by class inheritance implementation details.
+
- Filter:
. The FILTER_FLAG_ALLOW_OCTAL flag of the FILTER_VALIDATE_INT filter now accept
octal string with the leading octal prefix ("0o"/"0O")