RE: AW: [PEAR-DEV] solution for BC breakage

From: Date: Wed, 17 Sep 2003 07:48:04 +0000
Subject: RE: AW: [PEAR-DEV] solution for BC breakage
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21606@lists.php.net to get a copy of this message
> From: Stephan Schmidt [mailto:s.schmidt@metrix.de] > Sent: Wednesday, September 17, 2003 9:46 AM > > This is highly recommended anyways - otherwise users can't load packages > > on demand in a function. I always use $GLOBALS["_PACKAGE_MYVAR"] in my > > PEAR packages for this reason. Inside functions and methods, you can > > always use the global keyword, but the extra characters of $GLOBALS in > > top-level code translate into a heap of benefits. > > Then we should add this to the CS. I'm not sure if all packages that need > global variables do it the right way[tm]. Yup we should. Regards, Lukas

« previous php.pear.dev (#21606) next »