#21885 [Asn->Fbk]: move_uploaded_file error with open_basedir
| From: | wez@php.net | Date: | Sat, 22 Feb 2003 02:45:47 +0000 |
| Subject: | #21885 [Asn->Fbk]: move_uploaded_file error with open_basedir | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33893@lists.php.net to get a copy of this message | ||
ID: 21885
Updated by: wez@php.net
Reported By: mak77 at anvi dot it
-Status: Assigned
+Status: Feedback
Bug Type: Filesystem function related
Operating System: any
PHP Version: 4.3.1-dev
Assigned To: wez
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Try the next stable snapshot.
Previous Comments:
------------------------------------------------------------------------
[2003-02-21 20:20:34] wez@php.net
It's a bug.
Streams enforces safe mode for this operation, but it should be allowed
to carry on.
------------------------------------------------------------------------
[2003-02-02 11:12:50] philip@php.net
No clue what to document here and it still looks like a bug. If it's
not a bug, it would be nice if a php-dev member explained this new
behavior vs the old behavior as otherwise this will remain an open doc
bug all through eternity.
------------------------------------------------------------------------
[2003-01-28 06:42:05] m dot ford at lmu dot ac dot uk
And, by the way, to mak77@supereva.it: your change to open_basedir
can't have "taken", as the error message is still indicating it's just
"." -- you did restart your Web server, didn't you?
Cheers!
------------------------------------------------------------------------
[2003-01-28 06:39:29] m dot ford at lmu dot ac dot uk
Sorry, Sniper, but I fail to see what #16128 has to do with this. That
report complained that open_basedir was not being applied to the
*destination* of a move_uploaded_file(); this one complains that it
*is* being applied to the *source* of a move_uploaded_file() -- that
is, the temporary copy of the uploaded file.
There is no obvious (to me) good reason why the open_basedir
restriction should be applied to the uploaded temp-file -- if there is,
it should be documented so we know what it is.
Cheers!
------------------------------------------------------------------------
[2003-01-28 03:03:53] mak77 at supereva dot it
thank you...
but adding a path to open basedir doesn't do the job
it continue to say
File(c:\temp\php-uploads\phpD.tmp) is not within the allowed path(s):
(.)
------------------------------------------------------------------------
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/21885
--
Edit this bug report at http://bugs.php.net/?id=21885&edit=1