[PHP-DEV] RE : Extending include path to support stream wrappers

2006-07-19 Thread P
Greg Beaver wrote: > The solution I've found for pharring things has involved clever use of > str_replace(). I pharred up phpMyAdmin and it works just great using this > technique. This removes the need for an include_path hack. phpMyAdmin is an interesting test case because every file access

[PHP-DEV] RE : Extending include path to support stream wrappers

2006-07-11 Thread P
Greg Beaver wrote : > Allowing stream wrappers in include_path will open a potentially gigantic > security hole, making sure that it is closed will be a huge challenge, and > introduce a bit of overhead. I don't understand where the security hole would be. I see the stream wrappers as virtual d

[PHP-DEV] RE : Extending include path to support stream wrappers

2006-07-11 Thread P
Thanks for your answer, I have been searching for an alternate way for more than one month now but I still don't see any way to resolve the problem of relative includes in packaged files. The goal, here, is to package an existing software with as few modifications as possible. It is the only w

[PHP-DEV] Re: Extending include path to support stream wrappers

2006-07-11 Thread Sara Golemon
But, once again, may I humbly ask you to focus on my primary question, instead of arguing about a potential alternative to PHAR. And I also repeat that my question is of great interest for PHAR too. I think it's an interresting, yet ultimately inefficient idea. I would recommend that if you *re

[PHP-DEV] Re: Extending include path to support stream wrappers

2006-07-11 Thread Greg Beaver
LAUPRETRE François (P) wrote: > Hello, > > I am currently implementing a packaging tool in PHP. If you know PHAR, it is > the same kind of tool, which allows to implement a virtual file tree in a > single physical file. > > In such a tool, every file path becomes a 'stream-wrapped' path and t

Re: [PHP-DEV] RE : Extending include path to support stream wrappers

2006-07-11 Thread Pierre
On 7/11/06, Robin Ericsson <[EMAIL PROTECTED]> wrote: On 7/11/06, Pierre <[EMAIL PROTECTED]> wrote: > On 7/11/06, LAUPRETRE François (P) <[EMAIL PROTECTED]> wrote: > > Maybe. But I couldn't find any documentation about it and its features. And its > > 'Download latest' link is broken. I had to d

Re: [PHP-DEV] RE : Extending include path to support stream wrappers

2006-07-11 Thread Robin Ericsson
On 7/11/06, Pierre <[EMAIL PROTECTED]> wrote: On 7/11/06, LAUPRETRE François (P) <[EMAIL PROTECTED]> wrote: > Maybe. But I couldn't find any documentation about it and its features. And its > 'Download latest' link is broken. I had to download the C source code from CVS. It is not broken, ther

Re: [PHP-DEV] RE : Extending include path to support stream wrappers

2006-07-11 Thread Pierre
On 7/11/06, LAUPRETRE François (P) <[EMAIL PROTECTED]> wrote: Marcus Boerger wrote : > have you ever looked at pecl/phar? It can do that already. Maybe. But I couldn't find any documentation about it and its features. And its 'Download latest' link is broken. I had to download the C source code

[PHP-DEV] RE : Extending include path to support stream wrappers

2006-07-11 Thread P
Marcus Boerger wrote : > have you ever looked at pecl/phar? It can do that already. Maybe. But I couldn't find any documentation about it and its features. And its 'Download latest' link is broken. I had to download the C source code from CVS. But, once again, may I humbly ask you to focus on my