reference/spl/functions/spl-autoload-extensions.xml
60809ebcf7d0c261b2f00e093e4fab70326ffc7b
...
...
@@ -9,13 +9,18 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>string</type><methodname>spl_autoload_extensions</methodname>
12
-
<methodparam choice="opt"><type>string</type><parameter>file_extensions</parameter></methodparam>
12
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>file_extensions</parameter><initializer>&null;</initializer></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
This function can modify and check the file extensions that the built in
16
16
<function>__autoload</function> fallback function <function>spl_autoload</function>
17
17
will be using.
18
18
</para>
19
+
<note>
20
+
<simpara>
21
+
There should not be a space between the defined file extensions.
22
+
</simpara>
23
+
</note>
19
24
</refsect1>
20
25

21
26
<refsect1 role="parameters">
...
...
@@ -26,7 +31,7 @@
26
31
<term><parameter>file_extensions</parameter></term>
27
32
<listitem>
28
33
<para>
29
-
When calling without an argument, it simply returns the current list
34
+
If &null;, it simply returns the current list
30
35
of extensions each separated by comma. To modify the list of file
31
36
extensions, simply invoke the functions with the new list of file
32
37
extensions to use in a single string with each extensions separated
...
...
@@ -46,8 +51,45 @@
46
51
</para>
47
52
</refsect1>
48
53

49
-
</refentry>
54
+
<refsect1 role="changelog">
55
+
&reftitle.changelog;
56
+
<para>
57
+
<informaltable>
58
+
<tgroup cols="2">
59
+
<thead>
60
+
<row>
61
+
<entry>&Version;</entry>
62
+
<entry>&Description;</entry>
63
+
</row>
64
+
</thead>
65
+
<tbody>
66
+
<row>
67
+
<entry>8.0.0</entry>
68
+
<entry>
69
+
<parameter>file_extensions</parameter> is now nullable.
70
+
</entry>
71
+
</row>
72
+
</tbody>
73
+
</tgroup>
74
+
</informaltable>
75
+
</para>
76
+
</refsect1>
50
77

78
+
<refsect1 role="examples">
79
+
&reftitle.examples;
80
+
<example>
81
+
<title><function>spl_autoload_extensions</function> example</title>
82
+
<programlisting role="php">
83
+
<![CDATA[
84
+
<?php
85
+
spl_autoload_extensions(".php,.inc");
86
+
?>
87
+
]]>
88
+
</programlisting>
89
+
</example>
90
+
</refsect1>
91
+
92
+
</refentry>
51
93
<!-- Keep this comment at the end of the file
52
94
Local variables:
53
95
mode: sgml
54
96