We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5618771 commit 4625478Copy full SHA for 4625478
Zend/zend.c
@@ -1068,6 +1068,9 @@ void zend_startup(zend_utility_functions *utility_functions) /* {{{ */
1068
zend_init_rsrc_plist();
1069
zend_init_exception_op();
1070
zend_init_call_trampoline_op();
1071
+ EG(errors) = pemalloc(XtOffsetOf(struct zend_err_buf, buf) + sizeof(zend_error_info *) * 2, true);
1072
+ EG(errors->capacity) = 2;
1073
+ EG(errors->size) = 0;
1074
#endif
1075
1076
zend_ini_startup();
@@ -1228,6 +1231,7 @@ void zend_shutdown(void) /* {{{ */
1228
1231
pefree(CG(internal_run_time_cache), 1);
1229
1232
CG(internal_run_time_cache) = NULL;
1230
1233
}
1234
+ pefree(EG(errors), true);
1235
1236
zend_map_ptr_static_last = 0;
1237
zend_map_ptr_static_size = 0;
0 commit comments