We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f0302 commit bd886d2Copy full SHA for bd886d2
ext/session/session.c
@@ -1246,7 +1246,7 @@ static inline void last_modified(void)
1246
}
1247
1248
#define LAST_MODIFIED "Last-Modified: "
1249
- memcpy(buf, ZEND_STRL(LAST_MODIFIED));
+ memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1);
1250
strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);
1251
ADD_HEADER(buf);
1252
@@ -1261,7 +1261,7 @@ CACHE_LIMITER_FUNC(public)
1261
1262
gettimeofday(&tv, NULL);
1263
now = tv.tv_sec + PS(cache_expire) * 60;
1264
- memcpy(buf, ZEND_STRL(EXPIRES));
+ memcpy(buf, EXPIRES, sizeof(EXPIRES) - 1);
1265
strcpy_gmt(buf + sizeof(EXPIRES) - 1, &now);
1266
1267
0 commit comments