Skip to content

Commit bd886d2

Browse files
authored
Fix GH-19197: session build fails on system with memcpy as macro. (#19198)
Thus ZEND_STRL macro does not expand as expected so going back to not using it like lower branches.
1 parent 30f0302 commit bd886d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/session/session.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ static inline void last_modified(void)
12461246
}
12471247

12481248
#define LAST_MODIFIED "Last-Modified: "
1249-
memcpy(buf, ZEND_STRL(LAST_MODIFIED));
1249+
memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1);
12501250
strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);
12511251
ADD_HEADER(buf);
12521252
}
@@ -1261,7 +1261,7 @@ CACHE_LIMITER_FUNC(public)
12611261

12621262
gettimeofday(&tv, NULL);
12631263
now = tv.tv_sec + PS(cache_expire) * 60;
1264-
memcpy(buf, ZEND_STRL(EXPIRES));
1264+
memcpy(buf, EXPIRES, sizeof(EXPIRES) - 1);
12651265
strcpy_gmt(buf + sizeof(EXPIRES) - 1, &now);
12661266
ADD_HEADER(buf);
12671267

0 commit comments

Comments
 (0)