From d7f91cdeb926694858b07d77e29e10d5617112b1 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 29 Jul 2014 14:31:02 +0200 Subject: [PATCH] save funccall --- php_http_params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_http_params.c b/php_http_params.c index 1757ec9..65504ac 100644 --- a/php_http_params.c +++ b/php_http_params.c @@ -570,7 +570,7 @@ static void push_param(HashTable *params, php_http_params_state_t *state, const } static inline zend_bool check_str(const char *chk_str, size_t chk_len, const char *sep_str, size_t sep_len) { - return 0 < sep_len && chk_len >= sep_len && !memcmp(chk_str, sep_str, sep_len); + return 0 < sep_len && chk_len >= sep_len && *chk_str == *sep_str && !memcmp(chk_str + 1, sep_str + 1, sep_len - 1); } static size_t check_sep(php_http_params_state_t *state, php_http_params_token_t **separators) -- 2.30.2