#24600 [Opn->Bgs]: Unable to set 'upload_tmp_dir'

From: Date: Fri, 11 Jul 2003 07:59:39 +0000
Subject: #24600 [Opn->Bgs]: Unable to set 'upload_tmp_dir'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43739@lists.php.net to get a copy of this message
ID: 24600 Updated by: sniper@php.net Reported By: darrell at brogdon dot net -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: Red Hat Linux 7.3 PHP Version: 4.3.2 New Comment: It can only be set in php.ini / httpd.conf. Obviously your php.ini is not even loaded. Check your php.ini that you set it correctly, and check the phpinfo() output for the location where PHP is trying to find your php.ini.. Works fine here. Previous Comments: ------------------------------------------------------------------------ [2003-07-10 21:02:07] darrell at brogdon dot net 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: ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24600&edit=1

« previous php.bugs (#43739) next »