Skip to content

Commit aa42c6d

Browse files
authored
docs(context.http): document uri_parser_class option added in PHP 8.5 (#5843)
1 parent a9d052e commit aa42c6d

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

language/context/http.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,50 @@
194194
</para>
195195
</listitem>
196196
</varlistentry>
197+
<varlistentry xml:id="context.http.uri-parser-class">
198+
<term>
199+
<parameter>uri_parser_class</parameter>
200+
<type>string</type> or <type>null</type>
201+
</term>
202+
<listitem>
203+
<simpara>
204+
The class to use for parsing URIs. When &null;, the legacy behavior
205+
based on <function>parse_url</function> is used. Accepted values are
206+
<classname>Uri\Rfc3986\Uri</classname> (RFC 3986 compliant parser) and
207+
<classname>Uri\WhatWg\Url</classname> (WHATWG URL Standard parser).
208+
Custom userland implementations are not supported.
209+
</simpara>
210+
<simpara>
211+
Defaults to &null;.
212+
</simpara>
213+
</listitem>
214+
</varlistentry>
197215
</variablelist>
198216
</para>
199217
</refsect1>
200218

219+
<refsect1 role="changelog">
220+
&reftitle.changelog;
221+
<informaltable>
222+
<tgroup cols="2">
223+
<thead>
224+
<row>
225+
<entry>&Version;</entry>
226+
<entry>&Description;</entry>
227+
</row>
228+
</thead>
229+
<tbody>
230+
<row>
231+
<entry>8.5.0</entry>
232+
<entry>
233+
The <parameter>uri_parser_class</parameter> option was added.
234+
</entry>
235+
</row>
236+
</tbody>
237+
</tgroup>
238+
</informaltable>
239+
</refsect1>
240+
201241
<refsect1 role="examples">
202242
&reftitle.examples;
203243
<para>

0 commit comments

Comments
 (0)