php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24600 Unable to set 'upload_tmp_dir'
Submitted: 2003-07-10 21:02 UTC Modified: 2003-07-11 02:59 UTC
From: darrell at brogdon dot net Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.2 OS: Red Hat Linux 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: darrell at brogdon dot net
New email:
PHP Version: OS:

 

 [2003-07-10 21:02 UTC] 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:

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-11 02:59 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 19:01:34 2024 UTC