AW: [PEAR-DEV] solution for BC breakage
| From: | Daniel Khan | Date: | Tue, 16 Sep 2003 17:00:57 +0000 |
| Subject: | AW: [PEAR-DEV] solution for BC breakage | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21585@lists.php.net to get a copy of this message | ||
Stephan Schmidt wrote:
> > this sounds like a cool thing.
> > this way the system's layout etc. can be changed whenever needed.
> > good thing, at first sight ...
>
> I can see two small problems here:
>
> 1. Good bye "require_once", welcome "include_once". And I
> think require_once is a bit faster, isn't it?
I have to test that. It is only an idea for now.
> 2. If you are defining any global variables in your files,
> you have to use $GLOBALS["myVar"] instead of $myVar.
> Otherwise the are not defined in the global scope but inside
> the PEAR::load() method.
> Not that I'm using globals, but I'm not sure if there are
> packages that do things like this...
Cache uses globals.
The only clean solution I see now would be to get a native php function
which
includes the PEAR package and maintains the scope.
Don't know if this would work even if the php people accept slt.
I will try to do some tests within the next days.
Maybe I find a solution.
Or anyone saying this is crap?
I want to hear some opinions before I put work into it ;)
regards
Daniel Khan