#21975 [Com]: document safe_mode/open_basedir gotchas
| From: | moron at industrial dot org | Date: | Fri, 18 Apr 2003 01:01:45 +0000 |
| Subject: | #21975 [Com]: document safe_mode/open_basedir gotchas | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969352644@lists.php.net to get a copy of this message | ||
ID: 21975
Comment by: moron at industrial dot org
Reported By: philip at cornado dot com
Status: Open
Bug Type: Documentation problem
Operating System: all
PHP Version: 4.3.0
New Comment:
It appears that move_uploaded_file() is either broken with 4.3.1
or its behaviour radically changed under safe_mode. All of a
sudden file uploads are now failing with "open_basedir"
restriction errors (kind of defeating the purpose of
move_uploaded_file IMHO). Some clarification on this issue
would be definitely appreciated.
Cheers
Previous Comments:
------------------------------------------------------------------------
[2003-01-30 21:41:45] philip at cornado dot com
This bug report is where we list quirks, concerns, BC breaks, uses, and
general gotchas that stem from either safe mode or open_basedir.
Information that everyone from sysadmin's to newbie users should know.
For example, a potential safe_mode gotcha:
- As of PHP 4.3.0, the PHP_AUTH_* variables are NOT
available in PHP when both an external auth mechanism
exists and PHP is in safe mode. Note: REMOTE_USER is
available regardless.
There are others that belong in this bug report and eventually in the
docs. Regarding open_basedir, there is a recent (4.3.0) PHP change
regarding both upload_dir and include_path but I'm not sure what they
are exactly ... hopefully this bug report will know soon ;) And there
are others.
open_basedir and safe mode are documented here:
- phpdoc/{lang}/features/safe-mode.xml
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21975&edit=1