ID: 24600
Updated by: [EMAIL PROTECTED]
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