com php-src: fix warnings: ext/filter/logical_filters.c e xt/filter/sanitizing_filters.c

From: Date: Fri, 30 Jan 2015 18:54:46 +0000
Subject: com php-src: fix warnings: ext/filter/logical_filters.c e xt/filter/sanitizing_filters.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84473@lists.php.net to get a copy of this message
Commit: f6508f9fa2b10747c4176c007cbe4e14297c09a3 Author: Michael Wallner <mike@php.net> Fri, 30 Jan 2015 19:54:46 +0100 Parents: 34710ddc59f38de4ea0cffaca60d3ac8f4692bfd Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f6508f9fa2b10747c4176c007cbe4e14297c09a3 Log: fix warnings Changed paths: M ext/filter/logical_filters.c M ext/filter/sanitizing_filters.c Diff: diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 91ab756..ab13ce5 100644 --- a/ext/filter/logical_filters..c +++ b/ext/filter/logical_filters.c @@ -427,8 +427,7 @@ void php_filter_validate_regexp(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */ { zval *option_val; zend_string *regexp; - zend_long option_flags; - int regexp_set, option_flags_set; + int regexp_set; pcre *re = NULL; pcre_extra *pcre_extra = NULL; int preg_options = 0; @@ -437,7 +436,6 @@ void php_filter_validate_regexp(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */ /* Parse options */ FETCH_STR_OPTION(regexp, "regexp"); - FETCH_LONG_OPTION(option_flags, "flags"); if (!regexp_set) { php_error_docref(NULL, E_WARNING, "'regexp' option missing"); diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c index d9cb7ba..f786f29 100644 --- a/ext/filter/sanitizing_filters.c +++ b/ext/filter/sanitizing_filters.c @@ -88,8 +88,8 @@ static void php_filter_encode_url(zval *value, const unsigned char* chars, const } */ str = zend_string_alloc(3 * Z_STRLEN_P(value), 0); - p = str->val; - s = Z_STRVAL_P(value); + p = (unsigned char *) str->val; + s = (unsigned char *) Z_STRVAL_P(value); e = s + Z_STRLEN_P(value); while (s < e) { @@ -264,7 +264,7 @@ void php_filter_full_special_chars(PHP_INPUT_FILTER_PARAM_DECL) } else { quotes = ENT_NOQUOTES; } - buf = php_escape_html_entities_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), 1, quotes, SG(default_charset), 0); + buf = php_escape_html_entities_ex((unsigned char *) Z_STRVAL_P(value), Z_STRLEN_P(value), 1, quotes, SG(default_charset), 0); zval_ptr_dtor(value); ZVAL_STR(value, buf); }

« previous php.cvs (#84473) next »