Skip to content

Commit a44a1dc

Browse files
committed
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
1 parent 91e1df7 commit a44a1dc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ PHP NEWS
33
?? ??? 2012, PHP 5.4.5
44

55
- Core:
6+
. Fixed bug #62357 (compile failure: (S) Arguments missing for built-in
7+
function __memcmp). (Laruence)
68
. Fixed bug #61998 (Using traits with method aliases appears to result in
79
crash during execution). (Dmitry)
810
. Fixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that

Diff for: Zend/zend_language_parser.y

+1-1
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ static YYSIZE_T zend_yytnamerr(char *yyres, const char *yystr)
11911191

11921192
if (LANG_SCNG(yy_text)[0] == 0 &&
11931193
LANG_SCNG(yy_leng) == 1 &&
1194-
memcmp(yystr, ZEND_STRL("\"end of file\"")) == 0) {
1194+
memcmp(yystr, "\"end of file\"", sizeof("\"end of file\"") - 1) == 0) {
11951195
yystpcpy(yyres, "end of file");
11961196
return sizeof("end of file")-1;
11971197
}

0 commit comments

Comments
 (0)