Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions reference/simplexml/simplexmlelement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Get methods (such as
<methodname>SimpleXMLElement::asXML</methodname> or
<methodname>SimpleXMLElement::getName</methodname>) and casting a
<classname>SimpleXMLElement</classname> to a &string; no longer
implicitly rewind the iterator.
The iterator must now be rewound explicitly, using
<methodname>SimpleXMLElement::rewind</methodname>, where needed.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
11 changes: 11 additions & 0 deletions reference/simplexml/simplexmlelement/rewind.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
<para>
This method rewinds the <classname>SimpleXMLElement</classname> to the first element.
</para>

<note>
<simpara>
As of PHP 8.4.0, calling get methods (such as
<methodname>SimpleXMLElement::asXML</methodname> or
<methodname>SimpleXMLElement::getName</methodname>) or casting a
<classname>SimpleXMLElement</classname> to a &string; no longer
implicitly rewinds the iterator. Where required, the iterator must be
rewound explicitly by calling this method.
</simpara>
</note>
</refsect1>

<refsect1 role="parameters">
Expand Down