File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -959,11 +959,13 @@ static void zend_resolve_property_types(void) /* {{{ */
959
959
if (UNEXPECTED (ce -> type == ZEND_INTERNAL_CLASS && ZEND_CLASS_HAS_TYPE_HINTS (ce ))) {
960
960
ZEND_HASH_FOREACH_PTR (& ce -> properties_info , prop_info ) {
961
961
if (ZEND_TYPE_IS_NAME (prop_info -> type )) {
962
- zend_string * type_name = zend_string_tolower (ZEND_TYPE_NAME (prop_info -> type ));
963
- zend_class_entry * prop_ce = zend_hash_find_ptr (CG (class_table ), type_name );
962
+ zend_string * type_name = ZEND_TYPE_NAME (prop_info -> type );
963
+ zend_string * lc_type_name = zend_string_tolower (type_name );
964
+ zend_class_entry * prop_ce = zend_hash_find_ptr (CG (class_table ), lc_type_name );
964
965
965
966
ZEND_ASSERT (prop_ce && prop_ce -> type == ZEND_INTERNAL_CLASS );
966
967
prop_info -> type = ZEND_TYPE_ENCODE_CE (prop_ce , ZEND_TYPE_ALLOW_NULL (prop_info -> type ));
968
+ zend_string_release (lc_type_name );
967
969
zend_string_release (type_name );
968
970
}
969
971
} ZEND_HASH_FOREACH_END ();
You can’t perform that action at this time.
0 commit comments