Skip to content

Commit 18bac83

Browse files
authored
Update fopen.xml for 'n' flag (php#2718)
PHP has supported fopen with `'n'` since 2013. Document this.
1 parent fc068b4 commit 18bac83

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

reference/filesystem/functions/fopen.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,14 @@ $handle = fopen("c:\\folder\\resource.txt", "r");
190190
<entry><literal>'e'</literal></entry>
191191
<entry>
192192
Set close-on-exec flag on the opened file descriptor. Only
193-
available in PHP compiled on POSIX.1-2008 conform systems.
193+
available in PHP compiled on POSIX.1-2008 conformant systems.
194+
</entry>
195+
</row>
196+
<row>
197+
<entry><literal>'n'</literal></entry>
198+
<entry>
199+
Set non-blocking flag on the opened file descriptor. Only
200+
available in PHP compiled on POSIX.1-2008 conformant systems.
194201
</entry>
195202
</row>
196203
</tbody>

0 commit comments

Comments
 (0)