|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39451 upload_tmp_dir directive not used properly
Submitted: 2006-11-09 15:35 UTC Modified: 2007-01-09 19:43 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: digdug3 at zonnet dot nl Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 5.2.0 OS: Windows 2000
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.
Bug Type:
From: digdug3 at zonnet dot nl
New email:
PHP Version: OS:


 [2006-11-09 15:35 UTC] digdug3 at zonnet dot nl
The upload_tmp_dir is set in an virtual host file.
When php_info() is called the directive is set properly, but all relying functions to upload_tmp_dir use the standard (C:\WINNT\TMP).

Used to work correctly with previous version.

Apache 2.2.3/PHP 5.2.0/Windows 2000


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-12 11:53 UTC] digdug3 at zonnet dot nl
All extensions disabled, can be repoduced with an phpinfo() and Apache running virtual directories
 [2007-01-07 18:57 UTC]
Please try using this CVS snapshot:
For Windows:

 [2007-01-09 19:33 UTC] digdug3 at zonnet dot nl
The latest snapshot (5.2.1RC3-dev) solved the problem.
upload_tmp_dir is working properly again. (no need for open_basedir and C:\WINNT\TMP)

 [2007-01-09 19:43 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2010-11-10 14:46 UTC] ivo at altranslations dot be
Have the same problem 
apache 2 directadmin php 5.3.3
when executing phpinfo the upload_tmp_dir is correct however the variable tmp_name is not updated accordingly it remains at /tmp
I also had the same problem with version 5.2.13
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 21:03:49 2023 UTC