[PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag

2009-12-17 Thread Guilherme Blanco
Hi guys, With new namespace inclusions, standards group releasing a common autoloader, etc, I'm felling the necessity of something. Basically, I'm suggesting to follow the same way SplFileInfo does, with a few difference. Currently, SplFileInfo is include_path aware with anything defined.

Re: [PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag

2009-12-17 Thread Stanislav Malyshev
Hi! My suggesting is to add support to include_path just like fopen already have, which is through a flag. So the prototype would be: DirectoryIterator::__construct(string $path [, bool $include_path = false]); Maybe instead of adding this parameter one-by-one to every function doing

Re: [PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag

2009-12-17 Thread Guilherme Blanco
Yes, but stream_resolve_include_path() works only for files and also it's PHP6 only. =( On Thu, Dec 17, 2009 at 4:55 PM, Stanislav Malyshev s...@zend.com wrote: Hi! My suggesting is to add support to include_path just like fopen already have, which is through a flag. So the prototype would

Re: [PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag

2009-12-17 Thread Johannes Schlüter
On Thu, 2009-12-17 at 18:31 -0200, Guilherme Blanco wrote: Yes, but stream_resolve_include_path() works only for files and also it's PHP6 only. =( Should be quite simple to merge to other branches if anybody really cares. Doesn't look like anybody cared from the time 5.3 came up until at least