reference/filesystem/functions/file-exists.xml
871a231f4a1caa5fb258ae53b1bb7d1fb2a0f949
...
...
@@ -50,15 +50,6 @@
50
50
files.
51
51
</para>
52
52
</note>
53
-
<warning>
54
-
<para>
55
-
This function returns &false; for files inaccessible due to <link
56
-
linkend="features.safe-mode">safe mode</link> restrictions. However these
57
-
files still can be <link linkend="function.include">included</link> if
58
-
they are located in <link
59
-
linkend="ini.safe-mode-include-dir">safe_mode_include_dir</link>.
60
-
</para>
61
-
</warning>
62
53
<note>
63
54
<para>
64
55
The check is done using the real UID/GID instead of the effective one.
...
...
@@ -67,6 +58,11 @@
67
58
&fs.file.32bit;
68
59
</refsect1>
69
60

61
+
<refsect1 role="errors">
62
+
&reftitle.errors;
63
+
&fs.emits.warning.on.failure;
64
+
</refsect1>
65
+

70
66
<refsect1 role="examples">
71
67
&reftitle.examples;
72
68
<para>
...
...
@@ -89,11 +85,6 @@ if (file_exists($filename)) {
89
85
</para>
90
86
</refsect1>
91
87

92
-
<refsect1 role="errors">
93
-
&reftitle.errors;
94
-
&fs.emits.warning.on.failure;
95
-
</refsect1>
96
-

97
88
<refsect1 role="notes">
98
89
&reftitle.notes;
99
90
&note.clearstatcache;
...
...
@@ -108,6 +99,7 @@ if (file_exists($filename)) {
108
99
<member><function>is_writable</function></member>
109
100
<member><function>is_file</function></member>
110
101
<member><function>file</function></member>
102
+
<member><classname>SplFileInfo</classname></member>
111
103
</simplelist>
112
104
</para>
113
105
</refsect1>
114
106