File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -982,7 +982,7 @@ static void release_internal_zend_type(zend_type *type) {
982
982
} else if (ZEND_TYPE_HAS_NAME (* type )) {
983
983
zend_string_release (ZEND_TYPE_NAME (* type ));
984
984
}
985
- // zero-out the type to avoid double-free on shutdown in zend_free_internal_arg_info
985
+ // zero-out the type to avoid double-free on shutdown
986
986
memset (type , 0 , sizeof (zend_type ));
987
987
}
988
988
@@ -1003,6 +1003,12 @@ static void release_dynamic_function_entries(void) {
1003
1003
}
1004
1004
}
1005
1005
1006
+ // workaround for https://github.com/php/php-src/issues/11883
1007
+ static void release_ZendTestClass_dnf_property (void ) {
1008
+ zend_property_info * prop = zend_hash_str_find_ptr (& zend_test_class -> properties_info , "dnfProperty" , sizeof ("dnfProperty" ) - 1 );
1009
+ release_internal_zend_type (& prop -> type );
1010
+ }
1011
+
1006
1012
PHP_MINIT_FUNCTION (zend_test )
1007
1013
{
1008
1014
register_dynamic_function_entries ();
@@ -1080,6 +1086,7 @@ PHP_MINIT_FUNCTION(zend_test)
1080
1086
PHP_MSHUTDOWN_FUNCTION (zend_test )
1081
1087
{
1082
1088
release_dynamic_function_entries ();
1089
+ release_ZendTestClass_dnf_property ();
1083
1090
1084
1091
if (type != MODULE_TEMPORARY ) {
1085
1092
UNREGISTER_INI_ENTRIES ();
You can’t perform that action at this time.
0 commit comments