|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-11 02:59 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
Description: ------------ I'm unable to set the upload_tmp_dir value. Currently phpinfo() reports it as 'no value'. It should be '/tmp' by default. I tried setting it globally using php.ini. I also tried using ini_set('upload_tmp_dir', '/tmp'). If I call ini_get('upload_tmp_dir') immediately after the ini_set() there is no value present. I do have 'file_uploads = On' in php.ini and have restarted Apache after each change to php.ini. Reproduce code: --------------- <?php ini_set('upload_tmp_dir', '/tmp'); echo "FU: " . ini_get('file_uploads') . '<br/>'; echo "UMF: " . ini_get('upload_max_filesize') . '<br/>'; echo "UTD: " . ini_get('upload_tmp_dir'); ?> Expected result: ---------------- FU: 1 UMF: 2M UTD: /tmp Actual result: -------------- FU: 1 UMF: 2M UTD: