From: Michael Wallner Date: Tue, 22 Apr 2014 09:57:36 +0000 (+0200) Subject: fix warning X-Git-Tag: RELEASE_2_0_7~27 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7864108fe02c51ab2b6b028460667273dd59bba9;p=m6w6%2Fext-http fix warning --- diff --git a/php_http_misc.c b/php_http_misc.c index 0515c96..03b9560 100644 --- a/php_http_misc.c +++ b/php_http_misc.c @@ -61,7 +61,8 @@ int php_http_match(const char *haystack_str, const char *needle_str, int flags) result = !strcasecmp(haystack_str, needle_str); } } else { - char *found, *haystack = estrdup(haystack_str), *needle = estrdup(needle_str); + const char *found; + char *haystack = estrdup(haystack_str), *needle = estrdup(needle_str); if (flags & PHP_HTTP_MATCH_CASE) { found = zend_memnstr(haystack, needle, strlen(needle), haystack+strlen(haystack));