summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-09-23 20:11:05 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-09-23 20:11:05 +0000
commit1ee441613d06151c66feb76f19504db6ff4a1595 (patch)
tree2caed9f31b2733cc07ffd8c588fbf43be2083b92 /ext/mbstring/php_mbregex.c
parent08effa1b04746fce02a2c89f8981899a4116452c (diff)
downloadphp-git-1ee441613d06151c66feb76f19504db6ff4a1595.tar.gz
Remove useless mutex code due to the switch to oniguruma.
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index 4a4756bcc2..b8fc3c27d1 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -34,10 +34,6 @@
ZEND_EXTERN_MODULE_GLOBALS(mbstring)
-#ifdef ZTS
-MUTEX_T mbregex_locale_mutex = NULL;
-#endif
-
/* {{{ static void php_mb_regex_free_cache() */
static void php_mb_regex_free_cache(php_mb_regex_t **pre)
{
@@ -70,9 +66,6 @@ void _php_mb_regex_globals_dtor(zend_mbstring_globals *pglobals TSRMLS_DC)
/* {{{ PHP_MINIT_FUNCTION(mb_regex) */
PHP_MINIT_FUNCTION(mb_regex)
{
-# ifdef ZTS
- mbregex_locale_mutex = tsrm_mutex_alloc();
-# endif
return SUCCESS;
}
/* }}} */
@@ -80,11 +73,6 @@ PHP_MINIT_FUNCTION(mb_regex)
/* {{{ PHP_MSHUTDOWN_FUNCTION(mb_regex) */
PHP_MSHUTDOWN_FUNCTION(mb_regex)
{
-#ifdef ZTS
- if (mbregex_locale_mutex != NULL) {
- tsrm_mutex_free(mbregex_locale_mutex);
- }
-#endif
return SUCCESS;
}
/* }}} */