Re: [PHP-DEV] Re: is_readable and include path

2006-10-18 Thread Ilia Alshanetsky
-1 for the idea. I think using include_path for realpath() goes against the code logic that should be applied by realpath. Ilia Alshanetsky -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: is_readable and include path

2006-10-18 Thread Ralph Schindler
Is it worth even attempting to create a patch and submitting it to do the following: string realpath ( string path [, bool use_include_path]) or will it be shot down? There must be a way to find the full path to a file that resides in one of the include paths no? I can understand not wanti

Re: [PHP-DEV] Re: is_readable and include path

2006-10-08 Thread Ralph Schindler
Sara Golemon wrote: bool is_readable ( string filename [, bool use_include_path] ) we can always dream .. I prefer the word "mature" instead of dream ;) How about something which will save having to resolve that path twice? $realpath = stream_resolve_include_path($relativepath); if ($re

[PHP-DEV] Re: is_readable and include path

2006-10-08 Thread Sara Golemon
bool is_readable ( string filename [, bool use_include_path] ) we can always dream .. so far the answer has been that this parameter should never have been added to fopen(), and that file_exists(), is_readable and friends should never get this feature. IIRC the reason was that they should not

[PHP-DEV] Re: is_readable and include path

2006-10-06 Thread Lukas Kahwe Smith
Ralph Schindler wrote: In the spirit of fopen's optional [, bool use_include_path].. is this something that can be added to is_readable? ie: bool is_readable ( string filename [, bool use_include_path] ) we can always dream .. so far the answer has been that this parameter should never have