diff options
author | Xinchen Hui <laruence@php.net> | 2012-06-26 18:42:33 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-06-26 18:42:33 +0800 |
commit | a44a1dc194e60c51a4b7716f78f34a7dc334744b (patch) | |
tree | 91be15eb0c11932a1a761546db074315bd3a4810 | |
parent | 91e1df704eed40325fd963a308e466bbbf96184f (diff) | |
download | php-git-a44a1dc194e60c51a4b7716f78f34a7dc334744b.tar.gz |
Fixed bug #62357 (compile failure: (S) Arguments missing for built-in function __memcmp).
Any C library function may be a macro, We should avoid using ZEND_STRS(L) as their arguments
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | Zend/zend_language_parser.y | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,8 @@ PHP NEWS ?? ??? 2012, PHP 5.4.5 - Core: + . Fixed bug #62357 (compile failure: (S) Arguments missing for built-in + function __memcmp). (Laruence) . Fixed bug #61998 (Using traits with method aliases appears to result in crash during execution). (Dmitry) . Fixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y index d0730b75d6..9a0b3209e5 100644 --- a/Zend/zend_language_parser.y +++ b/Zend/zend_language_parser.y @@ -1191,7 +1191,7 @@ static YYSIZE_T zend_yytnamerr(char *yyres, const char *yystr) if (LANG_SCNG(yy_text)[0] == 0 && LANG_SCNG(yy_leng) == 1 && - memcmp(yystr, ZEND_STRL("\"end of file\"")) == 0) { + memcmp(yystr, "\"end of file\"", sizeof("\"end of file\"") - 1) == 0) { yystpcpy(yyres, "end of file"); return sizeof("end of file")-1; } |