From d04f1309c8d93d2c7447b37eb6dfbaaf4ba0669b Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Mon, 10 Jun 2002 21:41:16 +0000 Subject: [PATCH] - Add appropriate warnings that Windows does not support remote file access for the include/require friends. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@85326 c90b9560-bf6c-de11-be94-00142212c4b1 --- chapters/config.xml | 10 +++++++++- features/remote-files.xml | 8 +++++--- language-snippets.ent | 6 ++++++ language/control-structures.xml | 6 +++++- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/chapters/config.xml b/chapters/config.xml index 4ac45eb635..38c44a9018 100644 --- a/chapters/config.xml +++ b/chapters/config.xml @@ -1,5 +1,5 @@ - + Configuration @@ -169,6 +169,14 @@ linkend="install.configure.disable-url-fopen-wrapper">--d isable-url-fopen-wrapper. + + + On Windows, the following functions do not support remote file + accesing: include, + include_once, require and + require_once. + + diff --git a/features/remote-files.xml b/features/remote-files.xml index b1be14555b..f1e55df330 100644 --- a/features/remote-files.xml +++ b/features/remote-files.xml @@ -1,5 +1,5 @@ - + Using remote files @@ -16,8 +16,10 @@ - You can't use remote files in include and - require statements on Windows. + The Windows version of PHP currently does not support + remote file accessing for the following functions: + include, include_once, + require and require_once. diff --git a/language-snippets.ent b/language-snippets.ent index ebea4ac7d2..a336dba3f2 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -17,6 +17,12 @@ warned and use this function at your own risk.'> currently not documented; only the argument list is available.'> +The Windows +version of PHP currently does not support remote +file accessing for this function, even if +allow_url_fopen is enabled. +'> + As with anything that outputs its result directly to the browser, you can use the output-control functions to capture diff --git a/language/control-structures.xml b/language/control-structures.xml index b937cc63e1..877774da1e 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1077,6 +1077,7 @@ require ('somefile.txt'); require itself happens only once. + &warn.no-win32-fopen-wrapper; See also include, require_once, include_once, eval, @@ -1191,6 +1192,7 @@ echo "A $color $fruit"; // A green being run on the remote server and the result is then being included into the local script. + &warn.no-win32-fopen-wrapper; <function>include</function> through HTTP @@ -1355,6 +1357,7 @@ echo $bar; // prints 1 require_once was added in PHP 4.0.1pl2 + &warn.no-win32-fopen-wrapper; See also: require, include, include_once, @@ -1392,6 +1395,7 @@ echo $bar; // prints 1 include_once was added in PHP 4.0.1pl2 + &warn.no-win32-fopen-wrapper; See also include, require, require_once,