AW: [PEAR-DEV] solution for BC breakage
| From: | Stephan Schmidt | Date: | Tue, 16 Sep 2003 16:15:14 +0000 |
| Subject: | AW: [PEAR-DEV] solution for BC breakage | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21582@lists.php.net to get a copy of this message | ||
Hi,
> 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?
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...
Stephan