vrana Thu Apr 21 06:22:45 2005 EDT
Modified files:
/phpdoc/en/reference/filesystem/functions file-exists.xml
Log:
Files can be included even if they don't 'exist' (bug #32286)
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/file-exists.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/reference/filesystem/functions/file-exists.xml
diff -u phpdoc/en/reference/filesystem/functions/file-exists.xml:1.12
phpdoc/en/reference/filesystem/functions/file-exists.xml:1.13
--- phpdoc/en/reference/filesystem/functions/file-exists.xml:1.12 Mon Dec
15 11:49:45 2003
+++ phpdoc/en/reference/filesystem/functions/file-exists.xml Thu Apr 21
06:22:44 2005
@@ -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 @@
¬e.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>,