From 6e83b494132fa55d4c2640e1e19c4fcd6dcd612e Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 31 Mar 2005 15:01:44 +0000 Subject: [PATCH] Context parameter (bug #32499) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183271 c90b9560-bf6c-de11-be94-00142212c4b1 --- language-snippets.ent | 3 ++- reference/filesystem/functions/file-get-contents.xml | 8 +++++++- reference/filesystem/functions/file-put-contents.xml | 3 ++- reference/filesystem/functions/fopen.xml | 6 ++---- reference/filesystem/functions/mkdir.xml | 6 +++--- reference/filesystem/functions/readfile.xml | 3 ++- reference/filesystem/functions/rename.xml | 8 ++------ reference/filesystem/functions/rmdir.xml | 8 ++------ reference/filesystem/functions/unlink.xml | 8 ++------ 9 files changed, 24 insertions(+), 29 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index 864577a36a..867bac37f0 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -12,7 +12,8 @@ function are cached. See clearstatcache for more details.'> Context support was added -with PHP 5.0.0.'> +with PHP 5.0.0. For a description of contexts, refer to +.'> If you start a program using this function and want to leave it running in the background, you have to make sure that the diff --git a/reference/filesystem/functions/file-get-contents.xml b/reference/filesystem/functions/file-get-contents.xml index 879d3de199..baf4a09618 100644 --- a/reference/filesystem/functions/file-get-contents.xml +++ b/reference/filesystem/functions/file-get-contents.xml @@ -1,5 +1,5 @@ - + @@ -34,6 +34,11 @@ need to encode the URI with urlencode. + + + context parameter can be skipped by &null;. + + @@ -71,6 +76,7 @@ &reftitle.notes; ¬e.bin-safe; &tip.fopen-wrapper; + ¬e.context-support; &warn.ssl-non-standard; diff --git a/reference/filesystem/functions/file-put-contents.xml b/reference/filesystem/functions/file-put-contents.xml index 64fff59c65..0e6771da8c 100644 --- a/reference/filesystem/functions/file-put-contents.xml +++ b/reference/filesystem/functions/file-put-contents.xml @@ -1,5 +1,5 @@ - + file_put_contents @@ -29,6 +29,7 @@ (not multi-dimension arrays). This is equivalent to file_put_contents($filename, join('', $array)). + ¬e.context-support; As of PHP 5.1.0, you may also pass a stream resource to the data parameter. In result, the remaining buffer of diff --git a/reference/filesystem/functions/fopen.xml b/reference/filesystem/functions/fopen.xml index 96e2963a3a..5057c1b368 100644 --- a/reference/filesystem/functions/fopen.xml +++ b/reference/filesystem/functions/fopen.xml @@ -1,5 +1,5 @@ - + @@ -49,10 +49,8 @@ Some protocols (also referred to as wrappers) support context and/or &php.ini; options. Refer to the specific page for the protocol in use for a list of options - which can be set. ( i.e. &php.ini; value + which can be set. (e.g. &php.ini; value user_agent used by the http wrapper). - For a description of contexts and the - zcontext parameter, refer to . ¬e.context-support; diff --git a/reference/filesystem/functions/mkdir.xml b/reference/filesystem/functions/mkdir.xml index f2063e788b..f85328a8a1 100644 --- a/reference/filesystem/functions/mkdir.xml +++ b/reference/filesystem/functions/mkdir.xml @@ -1,5 +1,5 @@ - + @@ -56,10 +56,10 @@ mkdir("/path/to/my/dir", 0700); for a listing of which wrappers support mkdir. + ¬e.context-support; - The recursive and context parameters - were added as of PHP 5.0.0. + The recursive parameter was added as of PHP 5.0.0. ¬e.sm.uidcheck.dir; diff --git a/reference/filesystem/functions/readfile.xml b/reference/filesystem/functions/readfile.xml index d79409e200..f8392260f0 100644 --- a/reference/filesystem/functions/readfile.xml +++ b/reference/filesystem/functions/readfile.xml @@ -1,5 +1,5 @@ - + @@ -28,6 +28,7 @@ you want to search for the file in the include_path, too. + ¬e.context-support; See also fpassthru, file, fopen, diff --git a/reference/filesystem/functions/rename.xml b/reference/filesystem/functions/rename.xml index e16809ab6e..cb2ddc31f2 100644 --- a/reference/filesystem/functions/rename.xml +++ b/reference/filesystem/functions/rename.xml @@ -1,5 +1,5 @@ - + @@ -52,11 +52,7 @@ rename("/tmp/tmp_file.txt", "/home/user/login/docs/my_file.txt"); match the wrapper used in newname. - - - The context parameter was added as of PHP 5.0.0. - - + ¬e.context-support; See also copy, unlink, and diff --git a/reference/filesystem/functions/rmdir.xml b/reference/filesystem/functions/rmdir.xml index ae1d7a9afc..cca2723f8a 100644 --- a/reference/filesystem/functions/rmdir.xml +++ b/reference/filesystem/functions/rmdir.xml @@ -1,5 +1,5 @@ - + @@ -25,11 +25,7 @@ for a listing of which wrappers support rmdir. - - - The context parameter was added as of PHP 5.0.0. - - + ¬e.context-support; ¬e.sm.uidcheck.dir; See also mkdir and unlink. diff --git a/reference/filesystem/functions/unlink.xml b/reference/filesystem/functions/unlink.xml index a646fe9494..b8ddba6a0a 100644 --- a/reference/filesystem/functions/unlink.xml +++ b/reference/filesystem/functions/unlink.xml @@ -1,5 +1,5 @@ - + @@ -24,11 +24,7 @@ for a listing of which wrappers support unlink. - - - The context parameter was added as of PHP 5.0.0. - - + ¬e.context-support; See also rmdir for removing directories.