From: Moriyoshi Koizumi Date: Tue, 11 Feb 2003 03:55:08 +0000 (+0000) Subject: Fixed ZTS build X-Git-Tag: RELEASE_0_5~1109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1068156252bfa6008c904cf95994d85fbec2aced;p=php Fixed ZTS build --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 5bed41bec1..ff08224bfa 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1094,7 +1094,7 @@ PHP_FUNCTION(mb_http_output) int name_len; enum mbfl_no_encoding no_encoding; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", (char **)&name, &name_len) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", (char **)&name, &name_len) == FAILURE) { RETURN_FALSE; } @@ -1447,7 +1447,7 @@ PHP_FUNCTION(mb_strpos) } } - if (offset < 0 || offset > haystack.len) { + if (offset < 0 || (unsigned long)offset > haystack.len) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset is out of range"); RETURN_FALSE; }