]> granicus.if.org Git - php/commitdiff
Fixed ZTS build
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 11 Feb 2003 03:55:08 +0000 (03:55 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 11 Feb 2003 03:55:08 +0000 (03:55 +0000)
ext/mbstring/mbstring.c

index 5bed41bec1d97c2010fae484824aaa2c6dd2a667..ff08224bfaa0c3b230f04bb8ddf137569f54a40a 100644 (file)
@@ -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;
        }