Skip to content

Commit 13a243b

Browse files
move string interning to MINIT
1 parent a7fef37 commit 13a243b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/soap/soap.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ static void php_soap_init_globals(zend_soap_globals *soap_globals)
453453
soap_globals->soap_version = SOAP_1_1;
454454
soap_globals->mem_cache = NULL;
455455
soap_globals->ref_map = NULL;
456-
soap_globals->lang_en = zend_string_init_interned(ZEND_STRL("en"), true);
457456
}
458457

459458
PHP_MSHUTDOWN_FUNCTION(soap)
@@ -553,6 +552,8 @@ PHP_MINIT_FUNCTION(soap)
553552
old_error_handler = zend_error_cb;
554553
zend_error_cb = soap_error_handler;
555554

555+
SAPI_GLOBAL(lang_en) = zend_string_init_interned(ZEND_STRL("en"), true);
556+
556557
return SUCCESS;
557558
}
558559

@@ -4205,7 +4206,7 @@ static xmlNodePtr serialize_zval(zval *val, sdlParamPtr param, const char *param
42054206
}
42064207
xmlParam = master_to_xml(enc, val, style, parent);
42074208
zval_ptr_dtor(&defval);
4208-
if (xmlParam != NULL) {
4209+
if (xmlParam != NULL) {
42094210
if (xmlParam->name == NULL || strcmp((char*)xmlParam->name, "BOGUS") == 0) {
42104211
xmlNodeSetName(xmlParam, BAD_CAST(paramName));
42114212
}

0 commit comments

Comments
 (0)