Currently we have two ways of getting a temporary directory.
$wgTmpDirectory - used by Math and diffing-related code.
wfTempDir() used by lots of other things, mostly with tempnam()
I tend to prefer the latter (less config is good). Should maybe look at merging the two.
Version: unspecified
Severity: enhancement