You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great job on AdapterMan so far! I've been experimenting with this and trying to narrow down some unusual behaviour.
Currently the handling of cookies appends any calls of setCookie to the static $cookies array, but this leads to a situation where multiple calls with the same name ends up returning multiple Set-cookie headers which differs from normal PHP execution.
Good catch !!
I'll try to fix it this Christmas and add a test.
But the final solution is to use the original php functions, we send a PR to php-src. php/php-src#16145
When this PR is merged we don't need to disable functions, and use directly the php functions.
Great job on AdapterMan so far! I've been experimenting with this and trying to narrow down some unusual behaviour.
Currently the handling of cookies appends any calls of
setCookie
to the static$cookies
array, but this leads to a situation where multiple calls with the same name ends up returning multipleSet-cookie
headers which differs from normal PHP execution.E.g.
Normal PHP response
Set-Cookie: myCookie=2; path=/; HttpOnly; SameSite=Strict
AdapterMan
Relevant code:
AdapterMan/src/Http.php
Line 247 in a7c6159
AdapterMan/src/Http.php
Line 186 in a7c6159
The text was updated successfully, but these errors were encountered: