Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-17 Thread Lukas Kahwe Smith
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

Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-17 Thread Hannes Magnusson
On Wed, Dec 17, 2008 at 22:30, Lukas Kahwe Smith wrote: > > On 17.12.2008, at 22:24, Hannes Magnusson wrote: > >> On Wed, Dec 17, 2008 at 21:02, Lukas Kahwe Smith >> wrote: >>> >>> which brings us back to the fact that we never added a proper way to be >>> able >>> to determine if a file exists i

Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-17 Thread Lukas Kahwe Smith
On 17.12.2008, at 22:24, Hannes Magnusson wrote: On Wed, Dec 17, 2008 at 21:02, Lukas Kahwe Smith wrote: which brings us back to the fact that we never added a proper way to be able to determine if a file exists in the include path or not. this is why a lot That is simply not true. st

Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-17 Thread Hannes Magnusson
On Wed, Dec 17, 2008 at 21:02, Lukas Kahwe Smith wrote: > > which brings us back to the fact that we never added a proper way to be able > to determine if a file exists in the include path or not. this is why a lot That is simply not true. stream_resolve_include_path() is available in HEAD. -Han

Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-17 Thread Lukas Kahwe Smith
On 10.12.2008, at 19:33, Daniel Convissor wrote: Hi: On Tue, Dec 09, 2008 at 01:50:21PM -0600, Gregory Beaver wrote: 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. I agree. To avoid compatibi

Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-10 Thread Daniel Convissor
Hi: On Tue, Dec 09, 2008 at 01:50:21PM -0600, Gregory Beaver wrote: > 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. I agree. To avoid compatibility issues between 5.2 and 5.3, it seems best that

Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-09 Thread Marcus Boerger
Hello Gregory, Tuesday, December 9, 2008, 8:50:21 PM, you wrote: > Hi, > This bug: > http://bugs.php.net/bug.php?id=46680 > uncovers 2 larger issues. > 1) Where should a function like file_put_contents() create its file if > it doesn't already exist and FILE_USE_INCLUDE_PATH is specified? Th

[PHP-DEV] problem with include_path and write-based file functions

2008-12-09 Thread Gregory Beaver
Hi, This bug: http://bugs.php.net/bug.php?id=46680 uncovers 2 larger issues. 1) Where should a function like file_put_contents() create its file if it doesn't already exist and FILE_USE_INCLUDE_PATH is specified? The test for this is ext/standard/file/file_put_contents_variation4.phpt and a fe