reference/filesystem/functions/file-get-contents.xml
ea62fb83196997032641b50fe44420305466195e
...
...
@@ -12,9 +12,9 @@
12
12
<type class="union"><type>string</type><type>false</type></type><methodname>file_get_contents</methodname>
13
13
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
14
<methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter><initializer>&false;</initializer></methodparam>
15
-
<methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
16
16
<methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam>
17
-
<methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
17
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>length</parameter><initializer>&null;</initializer></methodparam>
18
18
</methodsynopsis>
19
19
<para>
20
20
This function is similar to <function>file</function>, except that
...
...
@@ -136,6 +136,12 @@
136
136
</thead>
137
137
<tbody>
138
138
<row>
139
+
<entry>8.0.0</entry>
140
+
<entry>
141
+
<parameter>length</parameter> is nullable now.
142
+
</entry>
143
+
</row>
144
+
<row>
139
145
<entry>7.1.0</entry>
140
146
<entry>
141
147
Support for negative <parameter>offset</parameter>s has been added.
142
148