We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75a2ee7 + 092fd44 commit d4af204Copy full SHA for d4af204
ext/pcre/php_pcre.c
@@ -71,7 +71,7 @@ ZEND_TLS pcre_jit_stack *jit_stack = NULL;
71
#if defined(ZTS) && defined(HAVE_PCRE_JIT_SUPPORT)
72
static MUTEX_T pcre_mt = NULL;
73
#define php_pcre_mutex_alloc() if (tsrm_is_main_thread() && !pcre_mt) pcre_mt = tsrm_mutex_alloc();
74
-#define php_pcre_mutex_free() if (tsrm_is_main_thread() && pcre_mt) tsrm_mutex_free(pcre_mt);
+#define php_pcre_mutex_free() if (tsrm_is_main_thread() && pcre_mt) tsrm_mutex_free(pcre_mt); pcre_mt = NULL;
75
#define php_pcre_mutex_lock() tsrm_mutex_lock(pcre_mt);
76
#define php_pcre_mutex_unlock() tsrm_mutex_unlock(pcre_mt);
77
#else
0 commit comments