@@ -4488,7 +4488,13 @@ xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
4488
4488
</varlistentry >'>
4489
4489
4490
4490
<!ENTITY xml.handler.description '<para xmlns =" http://docbook.org/ns/docbook" >
4491
- If &null; or an empty string is passed, the handler is reset to its default state.
4491
+ If &null; is passed, the handler is reset to its default state.
4492
+ <warning >
4493
+ <simpara >
4494
+ An empty string will also reset the handler,
4495
+ however this is deprecated as of PHP 8.4.0.
4496
+ </simpara >
4497
+ </warning >
4492
4498
</para >
4493
4499
<para xmlns =" http://docbook.org/ns/docbook" >
4494
4500
If <parameter >handler</parameter > is a <type >callable</type >,
@@ -4498,7 +4504,23 @@ xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
4498
4504
If <parameter >handler</parameter > is a <type >string</type >,
4499
4505
it can be the name of a method of an object set with
4500
4506
<function >xml_set_object</function >.
4501
- </para >'>
4507
+ <warning >
4508
+ <simpara >
4509
+ This is deprecated as of PHP 8.4.0.
4510
+ </simpara >
4511
+ </warning >
4512
+ </para >
4513
+ <warning xmlns =" http://docbook.org/ns/docbook" >
4514
+ <simpara >
4515
+ As of PHP 8.4.0, the callable is checked to be valid while setting the handler,
4516
+ not when it is called.
4517
+ This means that <function >xml_set_object</function > must be called prior to
4518
+ setting a method string as the callback.
4519
+ However, as this behaviour is also deprecated as of PHP 8.4.0,
4520
+ using a proper <type >callable</type > for the method is recommended instead.
4521
+ </simpara >
4522
+ </warning >
4523
+ '>
4502
4524
4503
4525
<!ENTITY xml.handler.parser.param '<varlistentry xmlns =" http://docbook.org/ns/docbook" >
4504
4526
<term ><parameter >parser</parameter ></term >
@@ -4509,6 +4531,22 @@ xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
4509
4531
</listitem >
4510
4532
</varlistentry >'>
4511
4533
4534
+ <!ENTITY xml.changelog.handler-param '<row xmlns =" http://docbook.org/ns/docbook" >
4535
+ <entry >8.4.0</entry >
4536
+ <entry >
4537
+ Passing a non-<type >callable</type > <type >string</type > to
4538
+ <parameter >handler</parameter > is now deprecated,
4539
+ use a proper callable for methods, or &null; to reset the handler.
4540
+ </entry >
4541
+ </row >
4542
+ <row xmlns =" http://docbook.org/ns/docbook" >
4543
+ <entry >8.4.0</entry >
4544
+ <entry >
4545
+ The validity of <parameter >handler</parameter > as a <type >callable</type >
4546
+ is now checked when setting the handler instead of checking when calling it.
4547
+ </entry >
4548
+ </row >'>
4549
+
4512
4550
<!ENTITY xml.changelog.parser-param '<row xmlns =" http://docbook.org/ns/docbook" >
4513
4551
<entry >8.0.0</entry >
4514
4552
<entry >
0 commit comments