Skip to content

Commit 3e29332

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Apply SimpleXML iterator fixes only on master
2 parents 2546bbd + ec2ef64 commit 3e29332

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ DOM:
1313
Intl:
1414
. Added IntlDateFormatter::PATTERN constant. (David Carlier)
1515

16+
SimpleXML:
17+
. Fixed bug GH-12192 (SimpleXML infinite loop when getName() is called
18+
within foreach). (nielsdos)
19+
. Fixed bug GH-12208 (SimpleXML infinite loop when a cast is used inside a
20+
foreach). (nielsdos)
21+
. Fixed bug #55098 (SimpleXML iteration produces infinite loop). (nielsdos)
22+
1623
Standard:
1724
. Implement GH-12188 (Indication for the int size in phpinfo()). (timwolla)
1825
. Partly fix GH-12143 (Incorrect round() result for 0.49999999999999994).

UPGRADING

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ PHP 8.4 UPGRADE NOTES
2626
Consult sections 2. New Features and 6. New Functions for a list of
2727
newly implemented methods and constants.
2828

29+
- SimpleXML:
30+
. Get methods called, or casting to a string on a SimpleXMLElement will no
31+
longer implicitly reset the iterator data, unless explicitly rewound.
32+
For example, casting an element to a string within a foreach loop would
33+
cause an infinite loop because it destroyed the current iterator data.
34+
This is no longer the case as a consequence of the bugfixes for GH-12192,
35+
GH-12208, #55098.
36+
2937
- Standard:
3038
. round() now validates the value of the $mode parameter and throws a ValueError
3139
for invalid modes. Previously invalid modes would have been interpreted as

0 commit comments

Comments
 (0)