Re: exploring include_path options for pecl/phar

From: Date: Tue, 04 Mar 2008 16:11:05 +0000
Subject: Re: exploring include_path options for pecl/phar
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-5157@lists.php.net to get a copy of this message
Steph Fox wrote:
Hi Greg,
2b) design a more intelligent include_path parser that recognizes phar stream wrappers this would almost completely solve the problem, as it would then allow putting full phar:// stream paths inside include_path. No changes would need to be made to the PHP code, as interception of include_path-related stuff would happen inside pecl/phar. Can anyone think of a problem with 2b? I can't think of any and it is really ridiculously simple, but my intuition is nagging me that I am missing something that is a problem with this approach.
The only problem I can see with it is that it presumably means you'll need ext/phar enabled before you can use any pharballed application that isn't entirely standalone, is that correct? or could this interception magic be integrated into the default stub?
The interception magic will not work without pecl/phar. If you want your app to work without pecl/phar, then you need to have an if/else. Greg

« previous php.pecl.dev (#5157) next »