Files can be included even if they don't 'exist' (bug #32286)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@184814 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-04-21 10:22:44 +00:00
parent adf67bb563
commit dd233c07d3

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.12 $ -->
<!-- $Revision: 1.13 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.file-exists">
<refnamediv>
@ -43,6 +43,16 @@ if (file_exists($filename)) {
&note.clearstatcache;
&tip.fopen-wrapper.stat;
<warning>
<para>
This function returns &false; for files inaccessible due to <link
linkend="features.safe-mode">safe mode</link> retrictions. However these
files still can be <link linkend="function.include">included</link> if
they are located in <link
linkend="ini.safe-mode-include-dir">safe_mode_include_dir</link>.
</para>
</warning>
<para>
See also <function>is_readable</function>, <function>is_writable</function>,