Re: Re: cvs: php4 /ext/standard basic_functions.c basic_functions.h
| From: | Jim Winstead | Date: | Sat, 23 Mar 2002 19:57:05 +0000 |
| Subject: | Re: Re: cvs: php4 /ext/standard basic_functions.c basic_functions.h | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81682@lists.php.net to get a copy of this message | ||
Andrew Sitnikov <sitnikov@infonet.ee> wrote:
> RL> Yup, as far as I can see it is a completely useless function other than
> RL> the fact that it reads an entire file into a string. This is actually
> RL> something we should add, but it should be a generic load_file() or
> RL> str_file() or some other such function.
> RL> -Rasmus
>
> Probably you have not understood a problem, if is used open_basedir or
> safe_mode you have no any possibility to read a file until you move it
> in directory which you may read it.
but this is where you are (at least partially) wrong. if safe_mode is
set, you are still able to open an uploaded file.
however, from a brief code inspection, it looks to me like you may not
be able to open it if open_basedir is set. assuming i've read things
correctly, this is a arguably a bug, not a reason to introduce a new
function.
(it also looks to me like safe_mode_include_dir and open_basedir may
not get along nicely.)
jim