From 1ee441613d06151c66feb76f19504db6ff4a1595 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 23 Sep 2003 20:11:05 +0000 Subject: Remove useless mutex code due to the switch to oniguruma. --- ext/mbstring/php_mbregex.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'ext/mbstring/php_mbregex.c') 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; } /* }}} */ -- cgit v1.2.1