Skip to content

Commit c9a9362

Browse files
committed
Added UPGRADING note.
1 parent 72c3ede commit c9a9362

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

UPGRADING

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,15 @@ PHP 8.1 UPGRADE NOTES
211211
5. Changed Functions
212212
========================================
213213

214+
- Core:
215+
. Properties order used in foreach, var_dump(), serialize(), object comparison
216+
etc. was changed. Now properties are naturally ordered according to their
217+
declaration and inheritance. Prpoerties declared in a base class are going
218+
to be before the child properties. This order is consistent with internal
219+
layout of properies in zend_objct structure and repeats the order in
220+
default_properties_table[] and properties_info_table[]. The old order was
221+
not documented and was caused by class inheritance implementation details.
222+
214223
- Filter:
215224
. The FILTER_FLAG_ALLOW_OCTAL flag of the FILTER_VALIDATE_INT filter now accept
216225
octal string with the leading octal prefix ("0o"/"0O")

0 commit comments

Comments
 (0)