reference/filesystem/functions/umask.xml
0bf2170a90d0a7dc816918f671cf85e1d64330c5
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>umask</methodname>
13
-
<methodparam choice="opt"><type>int</type><parameter>mask</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>mask</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>umask</function> sets PHP's umask to
...
...
@@ -39,11 +39,33 @@
39
39
<refsect1 role="returnvalues">
40
40
&reftitle.returnvalues;
41
41
<para>
42
-
<function>umask</function> without arguments simply returns the
43
-
current umask otherwise the old umask is returned.
42
+
If <parameter>mask</parameter> is &null;, <function>umask</function>
43
+
simply returns the current umask otherwise the old umask is returned.
44
44
</para>
45
45
</refsect1>
46
46

47
+
<refsect1 role="changelog">
48
+
&reftitle.changelog;
49
+
<informaltable>
50
+
<tgroup cols="2">
51
+
<thead>
52
+
<row>
53
+
<entry>&Version;</entry>
54
+
<entry>&Description;</entry>
55
+
</row>
56
+
</thead>
57
+
<tbody>
58
+
<row>
59
+
<entry>8.0.0</entry>
60
+
<entry>
61
+
<parameter>mask</parameter> is nullable now.
62
+
</entry>
63
+
</row>
64
+
</tbody>
65
+
</tgroup>
66
+
</informaltable>
67
+
</refsect1>
68
+

47
69
<refsect1 role="examples">
48
70
&reftitle.examples;
49
71
<para>
50
72