com php-src: Explicitly ignore mblen(NULL, 0) retval: ext/standard/php_string.h
| From: | Nikita Popov | Date: | Thu, 16 Jul 2015 20:39:11 +0000 |
| Subject: | com php-src: Explicitly ignore mblen(NULL, 0) retval: ext/standard/php_string.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88007@lists.php.net to get a copy of this message | ||
Commit: 208257eec56533bf470044eb0595202bd1541462
Author: Nikita Popov <nikic@php.net> Thu, 16 Jul 2015 22:39:11 +0200
Parents: d8a6130660cd8c6cd99df5a84ae4c70469cac0bc
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=208257eec56533bf470044eb0595202bd1541462
Log:
Explicitly ignore mblen(NULL, 0) retval
Changed paths:
M ext/standard/php_string.h
Diff:
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h
index 8390bd7...6f10e9a 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);