diff --git a/NEWS b/NEWS index 53d6a71945a..1dd0612126f 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,13 @@ DOM: Intl: . Added IntlDateFormatter::PATTERN constant. (David Carlier) +SimpleXML: + . Fixed bug GH-12192 (SimpleXML infinite loop when getName() is called + within foreach). (nielsdos) + . Fixed bug GH-12208 (SimpleXML infinite loop when a cast is used inside a + foreach). (nielsdos) + . Fixed bug #55098 (SimpleXML iteration produces infinite loop). (nielsdos) + Standard: . Implement GH-12188 (Indication for the int size in phpinfo()). (timwolla) . Partly fix GH-12143 (Incorrect round() result for 0.49999999999999994). diff --git a/UPGRADING b/UPGRADING index 54a2f0e8c33..c9a0e523978 100644 --- a/UPGRADING +++ b/UPGRADING @@ -26,6 +26,14 @@ PHP 8.4 UPGRADE NOTES Consult sections 2. New Features and 6. New Functions for a list of newly implemented methods and constants. +- SimpleXML: + . Get methods called, or casting to a string on a SimpleXMLElement will no + longer implicitly reset the iterator data, unless explicitly rewound. + For example, casting an element to a string within a foreach loop would + cause an infinite loop because it destroyed the current iterator data. + This is no longer the case as a consequence of the bugfixes for GH-12192, + GH-12208, #55098. + - Standard: . round() now validates the value of the $mode parameter and throws a ValueError for invalid modes. Previously invalid modes would have been interpreted as