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 @@ -84,8 +84,10 @@ ZEND_TLS zend_bool mdata_used = 0;
84
84
ZEND_TLS uint8_t pcre2_init_ok = 0 ;
85
85
#if defined(ZTS ) && defined(HAVE_PCRE_JIT_SUPPORT )
86
86
static MUTEX_T pcre_mt = NULL ;
87
- #define php_pcre_mutex_alloc () if (tsrm_is_main_thread() && !pcre_mt) pcre_mt = tsrm_mutex_alloc();
88
- #define php_pcre_mutex_free () if (tsrm_is_main_thread() && pcre_mt) tsrm_mutex_free(pcre_mt); pcre_mt = NULL;
87
+ #define php_pcre_mutex_alloc () \
88
+ if (tsrm_is_main_thread() && !pcre_mt) pcre_mt = tsrm_mutex_alloc();
89
+ #define php_pcre_mutex_free () \
90
+ if (tsrm_is_main_thread() && pcre_mt) { tsrm_mutex_free(pcre_mt); pcre_mt = NULL; }
89
91
#define php_pcre_mutex_lock () tsrm_mutex_lock(pcre_mt);
90
92
#define php_pcre_mutex_unlock () tsrm_mutex_unlock(pcre_mt);
91
93
#else
You can’t perform that action at this time.
0 commit comments