From:             darrell at brogdon dot net
Operating system: Red Hat Linux 7.3
PHP version:      4.3.2
PHP Bug Type:     PHP options/info functions
Bug description:  Unable to set 'upload_tmp_dir'

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 bug report at http://bugs.php.net/?id=24600&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24600&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24600&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24600&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24600&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24600&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24600&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24600&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24600&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24600&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24600&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24600&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24600&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24600&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24600&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24600&r=gnused

Reply via email to