Follow up r69508. Mention both functions.
authorPlatonides <platonides@users.mediawiki.org>
Sun, 18 Jul 2010 21:40:49 +0000 (21:40 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 18 Jul 2010 21:40:49 +0000 (21:40 +0000)
includes/GlobalFunctions.php

index a68daf0..f4506c3 100644 (file)
@@ -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
  */