moriyoshi Tue Sep 23 16:11:06 2003 EDT
Modified files:
/php-src/ext/mbstring php_mbregex.c
Log:
Remove useless mutex code due to the switch to oniguruma.
Index: php-src/ext/mbstring/php_mbregex.c
diff -u php-src/ext/mbstring/php_mbregex.c:1.43 php-src/ext/mbstring/php_mbregex.c:1.44
--- php-src/ext/mbstring/php_mbregex.c:1.43 Mon Sep 22 22:47:06 2003
+++ php-src/ext/mbstring/php_mbregex.c Tue Sep 23 16:11:05 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mbregex.c,v 1.43 2003/09/23 02:47:06 hirokawa Exp $ */
+/* $Id: php_mbregex.c,v 1.44 2003/09/23 20:11:05 moriyoshi Exp $ */
#ifdef HAVE_CONFIG_H
@@ -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 @@
/* {{{ 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_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;
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php