On Nov 23, 2004, at 8:51 PM, Jonah Bossewitch wrote:
I didn't realize I could set the TMP environment
variable in the
.htaccess, and learned that while the mediawiki code respects the
$wgUploadDirectory, PHPTal still tries to create files in the /tmp
directory.
I think this is because when PHPTAL.php checks (is_writable) to see if
it can write in /tmp, php returns true that the /tmp dir is writeable,
even if safe_mode is on.
In my testing (PHP 4.3.8 on Linux), is_writable("/tmp") returns false
if either safe_mode is on or open_basedir has been set in a way that
excludes /tmp.
The current checks we've put in however will _not_ fall back to the
upload directory if the TMP environment variable is set; so if the
environment has preconfigured TMP=/tmp then you'll get the "can't write
to /tmp" message.
Anyway, because of a pile of such troubles I've converted the MonoBook
skin in the upcoming 1.4 release so it longer will require PHPTAL and
doesn't need to write out a compiled template.
-- brion vibber (brion @
pobox.com)