Skip to content

Commit 974abd8

Browse files
committed
Update UPGRADING wrt. samesite cookie RFC
Cf. <https://wiki.php.net/rfc/same-site-cookie>.
1 parent 2b58ab2 commit 974abd8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

UPGRADING

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,23 @@ JSON:
332332
precedence over JSON_THROW_ON_ERROR.
333333
(RFC: https://wiki.php.net/rfc/json_throw_on_error)
334334

335+
Session:
336+
. session_set_cookie_params() now also supports the following signature:
337+
session_set_cookie_params(array $options)
338+
where $options is an associative array which may have any of the keys
339+
"lifetime", "path", "domain", "secure", "httponly" and "samesite".
340+
Accordingly, the return value of session_get_cookie_params() now also has an
341+
element with the key "samesite".
342+
335343
Standard:
336344
. debug_zval_dump() was changed to display recursive arrays and objects
337345
in the same way as var_dump(). Now, it doesn't display them twice.
338346
. array_push() and array_unshift() can now also be called with a single
339347
argument, which is particularly convenient wrt. the spread operator.
348+
. setcookie() and setrawcookie() now also support the following signature:
349+
set(raw)cookie(string $name, [string $value, [array $options]])
350+
where $options is an associative array which may have any of the keys
351+
"lifetime", "path", "domain", "secure", "httponly" and "samesite".
340352

341353
PCRE:
342354
. preg_quote() now also escapes the '#' character.
@@ -507,6 +519,11 @@ Standard:
507519
. This INI directive has been removed. The value has already been ignored
508520
since PHP 5.3.0.
509521

522+
- session.cookie_samesite
523+
. New INI option to allow to set the SameSite directive for cookies. Defaults
524+
to "" (empty string), so no SameSite directive is set. Can be set to "Lax"
525+
or "Strict", which sets the respective SameSite directive.
526+
510527
- syslog.facility
511528
- New INI to set syslog facility which specifies what type of program is
512529
logging the message. It is used only when error_log is set to syslog.

0 commit comments

Comments
 (0)