Edit report at http://bugs.php.net/bug.php?id=44420&edit=1
ID: 44420
Comment by: f dot moretti at diciannove dot net
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
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[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] [email protected]
"/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] [email protected]
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.
------------------------------------------------------------------------
[2008-11-18 00:38:41] [email protected]
I'm not totally sure, but I think its somehow related to the path like:
X:\dir~1\..., can you try without using the ~N syntax?
------------------------------------------------------------------------
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
http://bugs.php.net/bug.php?id=44420
--
Edit this bug report at http://bugs.php.net/bug.php?id=44420&edit=1