Re: problem with include_path and write-based file functions
| From: | Lukas Kahwe Smith | Date: | Wed, 17 Dec 2008 21:44:11 +0000 |
| Subject: | Re: problem with include_path and write-based file functions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42311@lists.php.net to get a copy of this message | ||
On 09.12.2008, at 20:50, Gregory Beaver wrote:
file, it should only be used to find existing files. In any case, I think allowing include_path to be used at all for file modification is horrendous, and think it should be deprecated and removed from PHP 6. We should simply add file_resolve_path() function which can be used to locate a file.Since we have stream_resolve_include_path(), I guess we can make this suggestion a reality. Deprecate the ability to mess with the include path in fopen()/file_get_contents() or any other method/function that can do write operations. this btw imho also includes the cases when these functions (for example fopen()) are using in read mode. Speak now or forever hold your peace .. regards, Lukas Kahwe Smith mls@pooteeweet.org