@@ -332,11 +332,23 @@ JSON:
332
332
precedence over JSON_THROW_ON_ERROR.
333
333
(RFC: https://wiki.php.net/rfc/json_throw_on_error)
334
334
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
+
335
343
Standard:
336
344
. debug_zval_dump() was changed to display recursive arrays and objects
337
345
in the same way as var_dump(). Now, it doesn't display them twice.
338
346
. array_push() and array_unshift() can now also be called with a single
339
347
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".
340
352
341
353
PCRE:
342
354
. preg_quote() now also escapes the '#' character.
@@ -507,6 +519,11 @@ Standard:
507
519
. This INI directive has been removed. The value has already been ignored
508
520
since PHP 5.3.0.
509
521
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
+
510
527
- syslog.facility
511
528
- New INI to set syslog facility which specifies what type of program is
512
529
logging the message. It is used only when error_log is set to syslog.
0 commit comments