File tree 1 file changed +10
-2
lines changed
reference/stream/streamwrapper
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 10
10
<refsect1 role =" description" >
11
11
&reftitle.description;
12
12
<methodsynopsis >
13
- <modifier >public</modifier > <type > string</type ><methodname >streamWrapper::dir_readdir</methodname >
13
+ <modifier >public</modifier > <type class = " union " >< type > string</ type >< type >bool</ type > </type ><methodname >streamWrapper::dir_readdir</methodname >
14
14
<void />
15
15
</methodsynopsis >
16
16
<para >
30
30
Should return <type >string</type > representing the next filename, or
31
31
&false; if there is no next file.
32
32
</para >
33
+ <warning >
34
+ <simpara >
35
+ Returning <type >true</type > or <type >false</type > will have the same
36
+ effect of signaling there is no next file. However, returning
37
+ <type >true</type > is discouraged and <type >false</type > should be
38
+ used to signal this condition instead.
39
+ </simpara >
40
+ </warning >
33
41
<note >
34
42
<para >
35
- The return value will be casted to <type >string</type >.
43
+ A non-boolean return value will be casted to <type >string</type >.
36
44
</para >
37
45
</note >
38
46
</refsect1 >
You can’t perform that action at this time.
0 commit comments