File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,10 @@ ZEND_TLS zend_bool mdata_used = 0;
83
83
ZEND_TLS uint8_t pcre2_init_ok = 0 ;
84
84
#if defined(ZTS ) && defined(HAVE_PCRE_JIT_SUPPORT )
85
85
static MUTEX_T pcre_mt = NULL ;
86
- #define php_pcre_mutex_alloc () if (tsrm_is_main_thread() && !pcre_mt) pcre_mt = tsrm_mutex_alloc();
87
- #define php_pcre_mutex_free () if (tsrm_is_main_thread() && pcre_mt) tsrm_mutex_free(pcre_mt); pcre_mt = NULL;
86
+ #define php_pcre_mutex_alloc () \
87
+ if (tsrm_is_main_thread() && !pcre_mt) pcre_mt = tsrm_mutex_alloc();
88
+ #define php_pcre_mutex_free () \
89
+ if (tsrm_is_main_thread() && pcre_mt) { tsrm_mutex_free(pcre_mt); pcre_mt = NULL; }
88
90
#define php_pcre_mutex_lock () tsrm_mutex_lock(pcre_mt);
89
91
#define php_pcre_mutex_unlock () tsrm_mutex_unlock(pcre_mt);
90
92
#else
You can’t perform that action at this time.
0 commit comments