Skip to content

Commit

Permalink
Fix ZTS build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Moriyoshi Koizumi committed Mar 6, 2011
1 parent cdb9ee0 commit b2ddc6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ext/mbstring/mbstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,14 +1132,14 @@ static char *php_mb_rfc1867_getword_conf(const zend_encoding *encoding, char *st
char quote = *str;

str++;
return php_mb_rfc1867_substring_conf(encoding, str, strlen(str), quote);
return php_mb_rfc1867_substring_conf(encoding, str, strlen(str), quote TSRMLS_CC);
} else {
char *strend = str;

while (*strend && !isspace(*(unsigned char *)strend)) {
++strend;
}
return php_mb_rfc1867_substring_conf(encoding, str, strend - str, 0);
return php_mb_rfc1867_substring_conf(encoding, str, strend - str, 0 TSRMLS_CC);
}
}
/* }}} */
Expand All @@ -1154,8 +1154,8 @@ static char *php_mb_rfc1867_basename(const zend_encoding *encoding, char *filena
* the full path of the file on the user's filesystem, which means that unless
* the user does basename() they get a bogus file name. Until IE's user base drops
* to nill or problem is fixed this code must remain enabled for all systems. */
s = php_mb_safe_strrchr_ex(filename, '\\', filename_len, (const mbfl_encoding *)encoding TSRMLS_CC);
if ((tmp = php_mb_safe_strrchr_ex(filename, '/', filename_len, (const mbfl_encoding *)encoding TSRMLS_CC)) > s) {
s = php_mb_safe_strrchr_ex(filename, '\\', filename_len, (const mbfl_encoding *)encoding);
if ((tmp = php_mb_safe_strrchr_ex(filename, '/', filename_len, (const mbfl_encoding *)encoding)) > s) {
s = tmp;
}
if (s) {
Expand Down
2 changes: 1 addition & 1 deletion main/rfc1867.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
}

/* Initialize the buffer */
if (!(mbuff = multipart_buffer_new(boundary, boundary_len))) {
if (!(mbuff = multipart_buffer_new(boundary, boundary_len TSRMLS_CC))) {
sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer");
return;
}
Expand Down

0 comments on commit b2ddc6d

Please sign in to comment.