reference/spl/multipleiterator/current.xml
d51166ca16fda8e766849505b84f9306ef443f71
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="multipleiterator.current" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>MultipleIterator::current</refname>
...
...
@@ -9,9 +8,9 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="MultipleIterator">
13
12
<modifier>public</modifier> <type>array</type><methodname>MultipleIterator::current</methodname>
14
-
<void />
13
+
<void/>
15
14
</methodsynopsis>
16
15
<para>
17
16
Get the registered iterator instances current() result.
...
...
@@ -29,21 +28,45 @@
29
28
<refsect1 role="returnvalues">
30
29
&reftitle.returnvalues;
31
30
<para>
32
-
An <type>array</type> containing the current values of each attached iterator,
33
-
or &false; if no iterators are attached.
31
+
An <type>array</type> containing the current values of each attached iterator.
34
32
</para>
35
33
</refsect1>
36
34

37
35
<refsect1 role="errors">
38
36
&reftitle.errors;
39
37
<para>
40
-
A <classname>RuntimeException</classname> if mode <constant>MIT_NEED_ALL</constant>
41
-
is set and at least one attached iterator is not valid. Or an
42
-
<classname>IllegalValueException</classname> if a key is &null; and
38
+
A <classname>RuntimeException</classname> if the iterator is invalid (as of PHP 8.1.0),
39
+
or mode <constant>MIT_NEED_ALL</constant> is set and at least one attached iterator is
40
+
not valid. Or an <classname>IllegalValueException</classname> if a key is &null; and
43
41
<constant>MIT_KEYS_ASSOC</constant> is set.
44
42
</para>
45
43
</refsect1>
46
44

45
+

46
+
<refsect1 role="changelog">
47
+
&reftitle.changelog;
48
+
<informaltable>
49
+
<tgroup cols="2">
50
+
<thead>
51
+
<row>
52
+
<entry>&Version;</entry>
53
+
<entry>&Description;</entry>
54
+
</row>
55
+
</thead>
56
+
<tbody>
57
+
<row>
58
+
<entry>8.1.0</entry>
59
+
<entry>
60
+
A <classname>RuntimeException</classname> is now thrown if
61
+
<methodname>MultipleIterator::current</methodname> is called on an
62
+
invalid iterator. Previously, &false; was returned.
63
+
</entry>
64
+
</row>
65
+
</tbody>
66
+
</tgroup>
67
+
</informaltable>
68
+
</refsect1>
69
+

47
70
<refsect1 role="seealso">
48
71
&reftitle.seealso;
49
72
<para>
...
...
@@ -54,7 +77,6 @@
54
77
</refsect1>
55
78

56
79
</refentry>
57
-

58
80
<!-- Keep this comment at the end of the file
59
81
Local variables:
60
82
mode: sgml
61
83