|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-05-12 15:30 UTC] timtowdi at yahoo dot com
Description: ------------ On a server with open_basedir in effect, sys_get_temp_dir() still uses the default TMPDIR environment variable (which in this case is '/tmp'). This effectively renders sys_get_temp_dir useless for me, and there is no way to override it. It would be EXTREMELY useful to be able to set the default temp directory from an ini directive, such as the session temp dir and the uploaded files temp dir. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
sys_get_tmp_dir() and tempnam() are both affected on my system. However, using SetEnv TMPDIR in the Apache configuration does not work. getenv('TMPDIR') returns the expected result, but sys_get_tmp_dir() is unaffected. Please allow for a default temporary directory option so that I can switch my virtual hosts to that and resolve all of the temporary file issues (not simply uploads).