diff options
| author | jvoisin | 2025-10-01 13:44:06 +0200 |
|---|---|---|
| committer | Julien Voisin | 2025-10-01 13:59:45 +0200 |
| commit | 9509733befcb4010bc77b06fcf41e77078976e80 (patch) | |
| tree | dab8940dd797363b6f7105a1358ca23995ce82ef /src/sp_utils.c | |
| parent | 5ddd783a19dfc1428cfd02cabc55177b3a488a28 (diff) | |
Fix a cookie-related warning for PHP8.5.0
```
========DIFF========
001- OK
001+ Fatal error: Uncaught ValueError: setcookie(): "partitioned" option cannot be used without "secure" option in /builddir/build/BUILD/snuffleupagus-1c7598c432551d0c49c2c57f249ccd5ccabce638/src/tests/samesite_cookies.php:2
002+ Stack trace:
003+ #0 /builddir/build/BUILD/snuffleupagus-1c7598c432551d0c49c2c57f249ccd5ccabce638/src/tests/samesite_cookies.php(2): setcookie('super_cookie', 'super_value')
004+ #1 {main}
005+ thrown in /builddir/build/BUILD/snuffleupagus-1c7598c432551d0c49c2c57f249ccd5ccabce638/src/tests/samesite_cookies.php on line 2
========DONE========
FAIL Cookie samesite [tests/samesite_cookies.phpt]
```
Even though the warning might be spurious, let's fix this properly, by
initialising `partitioned` to false, and by setting it only if `secure` is set
as well.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
