Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

open_basedir and is_readable

0 views
Skip to first unread message

Arancaytar

unread,
Feb 6, 2008, 8:26:45 AM2/6/08
to
open_basedir exhibits very annoying (and imho buggy) behavior in
generating warnings even when is_readable() is called, rather than
just returning false as appropriate. This means it is impossible to
use is_readable as a precondition before opening a file.

Is there any way to check the preconditions of reading a file without
generating warnings for files outside open_basedir?

Arancaytar

unread,
Feb 6, 2008, 8:33:51 AM2/6/08
to

Addendum: http://bugs.php.net/bug.php?id=37476 describes this behavior.

0 new messages