File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ PHP 8.1 INTERNALS UPGRADE NOTES
8
8
e. ZEND_ATOL() changes
9
9
f. Non-serializable classes should use ZEND_ACC_NOT_SERIALIZABLE
10
10
g. _zend_hash_find_known_hash renamed to zend_hash_find_known_hash
11
+ h. Renaming of ZEND_TYPE_HAS_CLASS() into ZEND_TYPE_IS_COMPLEX()
11
12
12
13
2. Build system changes
13
14
a. New compiler flags
@@ -53,6 +54,9 @@ PHP 8.1 INTERNALS UPGRADE NOTES
53
54
ZEND_ACC_NOT_SERIALIZABLE (@not-serializable in stubs) rather than the
54
55
zend_class_(un)serialize_deny handlers which are removed.
55
56
g. _zend_hash_find_known_hash has been renamed to zend_hash_find_known_hash.
57
+ h. ZEND_TYPE_HAS_CLASS() has been renamed to ZEND_TYPE_IS_COMPLEX() for clarity.
58
+ A zend_type element can contain a zend_type_list which might be either a union or an intersection,
59
+ or a single class stored as either a zend_string* or a zend_class_entry*.
56
60
57
61
========================
58
62
2. Build system changes
Original file line number Diff line number Diff line change @@ -110,9 +110,11 @@ typedef void (*copy_ctor_func_t)(zval *pElement);
110
110
*
111
111
* ZEND_TYPE_IS_SET() - checks if there is a type-hint
112
112
* ZEND_TYPE_IS_ONLY_MASK() - checks if type-hint refer to standard type only
113
- * ZEND_TYPE_HAS_CLASS () - checks if type-hint contains some class
113
+ * ZEND_TYPE_IS_COMPLEX () - checks if type is a type_list, or contains a class either as a CE or as a name
114
114
* ZEND_TYPE_HAS_CE() - checks if type-hint contains some class as zend_class_entry *
115
115
* ZEND_TYPE_HAS_NAME() - checks if type-hint contains some class as zend_string *
116
+ * ZEND_TYPE_IS_INTERSECTION() - checks if the type_list represents an intersection type list
117
+ * ZEND_TYPE_IS_UNION() - checks if the type_list represents a union type list
116
118
*
117
119
* ZEND_TYPE_NAME() - returns referenced class name
118
120
* ZEND_TYPE_CE() - returns referenced class entry
You can’t perform that action at this time.
0 commit comments