Skip to content

Commit f677f12

Browse files
committed
ext/standard: Document partitioned option for setcookie/setrawcookie (8.5.0)
1 parent cc7976f commit f677f12

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

reference/network/functions/setcookie.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@
157157
<simpara>
158158
An associative <type>array</type> which may have any of the keys
159159
<literal>expires</literal>, <literal>path</literal>, <literal>domain</literal>,
160-
<literal>secure</literal>, <literal>httponly</literal> and <literal>samesite</literal>.
160+
<literal>secure</literal>, <literal>httponly</literal>,
161+
<literal>samesite</literal> and, as of PHP 8.5.0,
162+
<literal>partitioned</literal>.
161163
</simpara>
162164
<simpara>
163165
The values have the same meaning as described for the
@@ -183,6 +185,15 @@
183185
blocked by the client.
184186
</simpara>
185187
</note>
188+
<note>
189+
<simpara>
190+
As of PHP 8.5.0, the <literal>partitioned</literal> option marks the
191+
cookie for partitioned storage using an independent partition per
192+
top-level site (CHIPS). It must be used together with
193+
<literal>secure</literal>; otherwise a
194+
<exceptionname>ValueError</exceptionname> is thrown.
195+
</simpara>
196+
</note>
186197
</listitem>
187198
</varlistentry>
188199
</variablelist>
@@ -229,6 +240,13 @@
229240
</row>
230241
</thead>
231242
<tbody>
243+
<row>
244+
<entry>8.5.0</entry>
245+
<entry>
246+
The <parameter>options</parameter> array now supports the
247+
<literal>partitioned</literal> key.
248+
</entry>
249+
</row>
232250
<row>
233251
<entry>8.2.0</entry>
234252
<entry>

reference/network/functions/setrawcookie.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
</row>
6060
</thead>
6161
<tbody>
62+
<row>
63+
<entry>8.5.0</entry>
64+
<entry>
65+
The <parameter>options</parameter> array now supports the
66+
<literal>partitioned</literal> key.
67+
</entry>
68+
</row>
6269
<row>
6370
<entry>7.3.0</entry>
6471
<entry>

0 commit comments

Comments
 (0)