]> granicus.if.org Git - php/commitdiff
ZTS fix
authorDmitry Stogov <dmitry@php.net>
Tue, 22 Aug 2006 04:54:00 +0000 (04:54 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 22 Aug 2006 04:54:00 +0000 (04:54 +0000)
ext/standard/string.c

index 233c4c84f4f91e5f3c481c4540e4b0cc0a4841ca..59a885c90a7f6222f4ffc524e798ad2033933536 100644 (file)
@@ -6938,7 +6938,7 @@ static int php_u_str_word_count(UChar *str, int str_len, long type, UChar *char_
 /* }}} */
 
 /* {{{ php_str_word_count */
-static int php_str_word_count(char *str, int str_len, long type, char *char_list, int char_list_len, zval *return_value)
+static int php_str_word_count(char *str, int str_len, long type, char *char_list, int char_list_len, zval *return_value TSRMLS_DC)
 {
        char ch[256], *p, *e, *s, *buf;
        int word_count = 0;
@@ -7017,7 +7017,7 @@ PHP_FUNCTION(str_word_count)
        if (str_type == IS_UNICODE) {
                word_count = php_u_str_word_count(str.u, str_len, type, char_list.u, char_list_len, return_value TSRMLS_CC);
        } else {
-               word_count = php_str_word_count(str.s, str_len, type, char_list.s, char_list_len, return_value);
+               word_count = php_str_word_count(str.s, str_len, type, char_list.s, char_list_len, return_value TSRMLS_CC);
        }
 
        if (!type) {