Edit report at https://bugs.php.net/bug.php?id=44420&edit=1
ID: 44420 Comment by: bushkonst at gmail dot com Reported by: jturner at paycomonline dot com Summary: upload_tmp_dir directive in php.ini ignored for file uploads Status: No Feedback Type: Bug Package: IIS related Operating System: Windows Server 2003 PHP Version: 5.2.5 Block user comment: N Private report: N New Comment: I had a same problem: Win2008R2, PHP 5.2.12, and (upload_tmp_dir != tmp_name) when uploading. I had list the "upload_tmp_dir" on c:\ and in it was 65535(!) files php1.tmp - phpFFFF.tmp. After truncatig folder, PHP become upload files corectly to "upload_tmp_dir" Previous Comments: ------------------------------------------------------------------------ [2010-04-20 04:55:18] f dot moretti at diciannove dot net I'm using php from debian package, PHP 5.2.13-0.dotdeb.0, that come with suhosin-patch 0.9.7, and i've written in my vhost configuration file this directive: php_admin_value open_basedir /home/data/mysite.org/:/usr/lib/php php_admin_value upload_tmp_dir /home/data/mysite.org/tmp/ but when i try to upload a file i receive this error: PHP Warning: file(): open_basedir restriction in effect. File(/tmp/phpCtsVNF) is not within the allowed path(s): (/home/data/mysite.org/:/usr/lib/php) in /home/data/mysite.org/file3.php on line 85 PHP Warning: file(/tmp/phpCtsVNF): failed to open stream: Operation not permitted in /home/data/mysite.org/file3.php on line 85 php is ignoring my directive, any workaround? ------------------------------------------------------------------------ [2009-08-29 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-08-21 19:36:31] paj...@php.net "/var/tmp/phpiXsjk3"? That's a linux path. Which php version do you use and on which platform? ------------------------------------------------------------------------ [2009-08-21 18:42:28] adam at ingenesis-ca dot com Experiencing exactly the same thing... I ran phpinfo() and it properly reflects the new php.ini setting in local and master, but the script keeps throwing an error saying "/var/tmp/phpiXsjk3" doesn't exist (the original path that i don't want to use). What the F. ------------------------------------------------------------------------ [2009-03-01 01:22:37] ka...@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=44420 -- Edit this bug report at https://bugs.php.net/bug.php?id=44420&edit=1