Improve wfTempDir() fallback sequence
authorTim Starling <tstarling@wikimedia.org>
Thu, 21 Jan 2016 05:35:59 +0000 (16:35 +1100)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 21 Jan 2016 06:15:20 +0000 (06:15 +0000)
commitb7e65e555adc2b77dad55eb2b28338bf2e7619e1
treee83e9c49f07962f8292e871b57528e375177a6f8
parent1dd4c867e5368cfd187a9eb2f141440a5a8ce86f
Improve wfTempDir() fallback sequence

Validate the return value of sys_get_temp_dir(), and use upload_tmp_dir
if that is not writable. If nothing is writable, throw an exception.

Bug: T119934
Change-Id: I27d784f55c47277bbab1192853e2e04a9d8bd39a
includes/GlobalFunctions.php