Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Index: php_chasen.c
===================================================================
RCS file: /repository/pecl/chasen/php_chasen.c,v
retrieving revision 1.3
diff -u -r1.3 php_chasen.c
--- php_chasen.c 10 Aug 2003 12:45:11 -0000 1.3
+++ php_chasen.c 21 Jan 2006 11:06:56 -0000
@@ -121,11 +121,14 @@
argv[2] = NULL;
break;
}
-
+#ifdef ZTS
tsrm_mutex_lock(php_chasen_mtx);
+#endif
if (chasen_getopt_argv(argv, NULL) != 0) {
+#ifdef ZTS
tsrm_mutex_unlock(php_chasen_mtx);
+#endif
if (argv) {
efree(argv);
}
@@ -138,9 +141,11 @@
if (res) {
RETVAL_STRING(res, 1);
} else {
- RETVAL_STRINGL(empty_string, 0, 1);
+ RETVAL_STRINGL("", 0, 1);
}
+#ifdef ZTS
tsrm_mutex_unlock(php_chasen_mtx);
+#endif
if (argv) {
efree(argv);
@@ -163,11 +168,15 @@
convert_to_string_ex(arg_str);
+#ifdef ZTS
tsrm_mutex_lock(php_chasen_mtx);
+#endif
if (chasen_getopt_argv(php_chasen_argv_wakati, NULL) != 0) {
php_error(E_WARNING,"unable to initialize chasen library");
+#ifdef ZTS
tsrm_mutex_unlock(php_chasen_mtx);
+#endif
RETURN_FALSE;
}
res = chasen_sparse_tostr(Z_STRVAL_PP(arg_str));
@@ -191,7 +200,9 @@
} else {
RETVAL_FALSE;
}
+#ifdef ZTS
tsrm_mutex_unlock(php_chasen_mtx);
+#endif
}
/* }}} */