From: Michael Wallner Date: Wed, 6 Aug 2014 05:57:48 +0000 (+0200) Subject: MSVC dumbness X-Git-Tag: RELEASE_2_1_0_RC3~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4b017a75b134381e0f4dcef179fb3c63488a694e;p=m6w6%2Fext-http MSVC dumbness --- diff --git a/php_http_params.c b/php_http_params.c index 65504ac..092db05 100644 --- a/php_http_params.c +++ b/php_http_params.c @@ -253,7 +253,7 @@ static inline void sanitize_rfc5987(zval *zv, char **language, zend_bool *latin1 switch (Z_STRVAL_P(zv)[0]) { case 'I': case 'i': - if (!strncasecmp(Z_STRVAL_P(zv), ZEND_STRL("iso-8859-1"))) { + if (!strncasecmp(Z_STRVAL_P(zv), "iso-8859-1", lenof("iso-8859-1"))) { *latin1 = 1; ptr = Z_STRVAL_P(zv) + lenof("iso-8859-1"); break; @@ -261,7 +261,7 @@ static inline void sanitize_rfc5987(zval *zv, char **language, zend_bool *latin1 /* no break */ case 'U': case 'u': - if (!strncasecmp(Z_STRVAL_P(zv), ZEND_STRL("utf-8"))) { + if (!strncasecmp(Z_STRVAL_P(zv), "utf-8", lenof("utf-8"))) { *latin1 = 0; ptr = Z_STRVAL_P(zv) + lenof("utf-8"); break;