Skip to content

Commit c5c3a41

Browse files
committed
fopen() $mode is ignored for several php:// stream wrappers
Cf. <https://bugs.php.net/79905>.
1 parent fbba47c commit c5c3a41

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/filesystem/functions/fopen.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,14 @@ $handle = fopen("c:\\folder\\resource.txt", "r");
243243
<literal>'b'</literal> mode instead.
244244
</para>
245245
</note>
246+
<note>
247+
<simpara>
248+
The <parameter>mode</parameter> is ignored for <filename>php://output</filename>,
249+
<filename>php://input</filename>, <filename>php://stdin</filename>,
250+
<filename>php://stdout</filename>, <filename>php://stderr</filename> and
251+
<filename>php://fd</filename> stream wrappers.
252+
</simpara>
253+
</note>
246254
</listitem>
247255
</varlistentry>
248256
<varlistentry>

0 commit comments

Comments
 (0)