mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.
This commit is contained in:
parent
30f03021d1
commit
bd886d21e7
1 changed files with 2 additions and 2 deletions
|
@ -1246,7 +1246,7 @@ static inline void last_modified(void)
|
|||
}
|
||||
|
||||
#define LAST_MODIFIED "Last-Modified: "
|
||||
memcpy(buf, ZEND_STRL(LAST_MODIFIED));
|
||||
memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1);
|
||||
strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);
|
||||
ADD_HEADER(buf);
|
||||
}
|
||||
|
@ -1261,7 +1261,7 @@ CACHE_LIMITER_FUNC(public)
|
|||
|
||||
gettimeofday(&tv, NULL);
|
||||
now = tv.tv_sec + PS(cache_expire) * 60;
|
||||
memcpy(buf, ZEND_STRL(EXPIRES));
|
||||
memcpy(buf, EXPIRES, sizeof(EXPIRES) - 1);
|
||||
strcpy_gmt(buf + sizeof(EXPIRES) - 1, &now);
|
||||
ADD_HEADER(buf);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue