From b450b32cc7cc9de3958696c12611f14339b9ab92 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 18 Jul 2010 21:40:49 +0000 Subject: [PATCH] Follow up r69508. Mention both functions. --- includes/GlobalFunctions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index a68daf0fd8..f4506c38a3 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2095,9 +2095,10 @@ function &wfGetMimeMagic() { * we'll use sys_get_temp_dir(). The TMPDIR, TMP, and TEMP environment * variables are then checked in sequence, and if none are set /tmp is * returned as the generic Unix default. - * - * NOTE: When possible, use the tempnam() function to create temporary - * files to avoid race conditions on file creation, etc. + * It is common to call it with tempnam(). + * + * NOTE: When possible, use instead the tmpfile() function to create + * temporary files to avoid race conditions on file creation, etc. * * @return String */ -- 2.20.1