From f677f12fd1e378a070516000c655776c1cdec2e0 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Fri, 10 Jul 2026 14:50:42 +0200 Subject: [PATCH] ext/standard: Document partitioned option for setcookie/setrawcookie (8.5.0) --- reference/network/functions/setcookie.xml | 20 +++++++++++++++++++- reference/network/functions/setrawcookie.xml | 7 +++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/reference/network/functions/setcookie.xml b/reference/network/functions/setcookie.xml index 89d0f86a0c85..bf5c907fbe76 100644 --- a/reference/network/functions/setcookie.xml +++ b/reference/network/functions/setcookie.xml @@ -157,7 +157,9 @@ An associative array which may have any of the keys expires, path, domain, - secure, httponly and samesite. + secure, httponly, + samesite and, as of PHP 8.5.0, + partitioned. The values have the same meaning as described for the @@ -183,6 +185,15 @@ blocked by the client. + + + As of PHP 8.5.0, the partitioned option marks the + cookie for partitioned storage using an independent partition per + top-level site (CHIPS). It must be used together with + secure; otherwise a + ValueError is thrown. + + @@ -229,6 +240,13 @@ + + 8.5.0 + + The options array now supports the + partitioned key. + + 8.2.0 diff --git a/reference/network/functions/setrawcookie.xml b/reference/network/functions/setrawcookie.xml index 992c73278aa3..4b1f8a568905 100644 --- a/reference/network/functions/setrawcookie.xml +++ b/reference/network/functions/setrawcookie.xml @@ -59,6 +59,13 @@ + + 8.5.0 + + The options array now supports the + partitioned key. + + 7.3.0