[HttpFoundation] fix compat of tests with PHP 7.3
This commit is contained in:
parent
c31c40d83e
commit
4c1f7c5877
@ -153,7 +153,7 @@ class NativeSessionStorage implements SessionStorageInterface
|
|||||||
if (null !== $this->emulateSameSite) {
|
if (null !== $this->emulateSameSite) {
|
||||||
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
|
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
|
||||||
if (null !== $originalCookie) {
|
if (null !== $originalCookie) {
|
||||||
header(sprintf('%s; samesite=%s', $originalCookie, $this->emulateSameSite));
|
header(sprintf('%s; SameSite=%s', $originalCookie, $this->emulateSameSite));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,6 +11,6 @@ Array
|
|||||||
(
|
(
|
||||||
[0] => Content-Type: text/plain; charset=utf-8
|
[0] => Content-Type: text/plain; charset=utf-8
|
||||||
[1] => Cache-Control: max-age=0, private, must-revalidate
|
[1] => Cache-Control: max-age=0, private, must-revalidate
|
||||||
[2] => Set-Cookie: sid=random_session_id; path=/; secure; HttpOnly; samesite=lax
|
[2] => Set-Cookie: sid=random_session_id; path=/; secure; HttpOnly; SameSite=lax
|
||||||
)
|
)
|
||||||
shutdown
|
shutdown
|
||||||
|
Reference in New Issue
Block a user