]> granicus.if.org Git - php/commitdiff
improved phpdoc of mkTemp()
authorTomas V.V.Cox <cox@php.net>
Sun, 16 Dec 2001 01:36:49 +0000 (01:36 +0000)
committerTomas V.V.Cox <cox@php.net>
Sun, 16 Dec 2001 01:36:49 +0000 (01:36 +0000)
pear/System.php

index a97cc5ceced05acfa9927a5eed272d204aacf49d..84c4dc93f765edbc2a2573839ff78794f558806a 100644 (file)
@@ -284,10 +284,10 @@ class System extends PEAR
     * Creates temporal files or directories
     *
     * Usage:
-    *   1) System::mktemp("prefix");
-    *   2) System::mktemp("-d prefix");
-    *   3) System::mktemp();
-    *   4) System::mktemp("-t /var/tmp prefix");
+    *   1) $tempfile = System::mktemp("prefix");
+    *   2) $tempdir  = System::mktemp("-d prefix");
+    *   3) $tempfile = System::mktemp();
+    *   4) $tempfile = System::mktemp("-t /var/tmp prefix");
     *
     * prefix -> The string that will be prepended to the temp name
     *           (defaults to "tmp").
@@ -298,7 +298,7 @@ class System extends PEAR
     *           c:\windows\temp or /tmp will be used.
     *
     * @param   string  $args  The arguments
-    * @return  mixed   PEAR_Error or true for success
+    * @return  mixed   the full path of the created (file|dir) or a PEAR_Error
     * @access  public
     */
     function mktemp($args = null)