From: Nikita Popov Date: Thu, 16 Jul 2015 20:39:11 +0000 (+0200) Subject: Explicitly ignore mblen(NULL, 0) retval X-Git-Tag: php-7.0.0beta2~6^2~63^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=208257eec56533bf470044eb0595202bd1541462;p=php Explicitly ignore mblen(NULL, 0) retval --- diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index 8390bd79fe..6f10e9a313 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -161,7 +161,7 @@ PHPAPI char *php_strerror(int errnum); # define php_mb_reset() memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))) #else # define php_mblen(ptr, len) mblen(ptr, len) -# define php_mb_reset() mblen(NULL, 0) +# define php_mb_reset() php_ignore_value(mblen(NULL, 0)) #endif void register_string_constants(INIT_FUNC_ARGS);