open_basedir and is_readable

This is a discussion on open_basedir and is_readable within the alt.comp.lang.php forums, part of the PHP Programming Forums category; open_basedir exhibits very annoying (and imho buggy) behavior in generating warnings even when is_readable() is called, rather than just returning ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-06-2008
Arancaytar
 
Posts: n/a
Default open_basedir and is_readable

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?
Reply With Quote
  #2 (permalink)  
Old 02-06-2008
Arancaytar
 
Posts: n/a
Default Re: open_basedir and is_readable

On Feb 6, 2:26*pm, Arancaytar <arancaytar.ilya...@gmail.com> wrote:
> 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?


Addendum: http://bugs.php.net/bug.php?id=37476 describes this behavior.
Reply With Quote
  #3 (permalink)  
Old 03-19-2008
Wiktor Walc
 
Posts: n/a
Default Re: open_basedir and is_readable

Arancaytar pisze:
> On Feb 6, 2:26 pm, Arancaytar <arancaytar.ilya...@gmail.com> wrote:
>> 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?

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


I'm posting this just in case anyone looked for a quick solution: use
@is_readable.

--
CKFinder :: ajax web file browser
http://www.ckfinder.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:42 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0