Andrew Sitnikov <[EMAIL PROTECTED]> 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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to