File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ struct _zend_compiler_globals {
119
119
bool multibyte ;
120
120
bool detect_unicode ;
121
121
bool encoding_declared ;
122
+ bool interned_strings_initialized ;
122
123
123
124
zend_ast * ast ;
124
125
zend_arena * ast_arena ;
Original file line number Diff line number Diff line change @@ -231,6 +231,9 @@ static zend_string* ZEND_FASTCALL zend_new_interned_string_request(zend_string *
231
231
return ret ;
232
232
}
233
233
234
+ if (!CG (interned_strings_initialized )) {
235
+ zend_interned_strings_activate ();
236
+ }
234
237
ret = zend_interned_string_ht_lookup (str , & CG (interned_strings ));
235
238
if (ret ) {
236
239
zend_string_release (str );
@@ -339,6 +342,7 @@ static zend_string* ZEND_FASTCALL zend_string_init_existing_interned_request(con
339
342
ZEND_API void zend_interned_strings_activate (void )
340
343
{
341
344
zend_init_interned_strings_ht (& CG (interned_strings ), 0 );
345
+ CG (interned_strings_initialized ) = true;
342
346
}
343
347
344
348
ZEND_API void zend_interned_strings_deactivate (void )
You can’t perform that action at this time.
0 commit comments