Skip to content

Commit 4625478

Browse files
committed
fix nts case
1 parent 5618771 commit 4625478

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,9 @@ void zend_startup(zend_utility_functions *utility_functions) /* {{{ */
10681068
zend_init_rsrc_plist();
10691069
zend_init_exception_op();
10701070
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;
10711074
#endif
10721075

10731076
zend_ini_startup();
@@ -1228,6 +1231,7 @@ void zend_shutdown(void) /* {{{ */
12281231
pefree(CG(internal_run_time_cache), 1);
12291232
CG(internal_run_time_cache) = NULL;
12301233
}
1234+
pefree(EG(errors), true);
12311235
#endif
12321236
zend_map_ptr_static_last = 0;
12331237
zend_map_ptr_static_size = 0;

0 commit comments

Comments
 (0)