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

From: Date: Wed, 17 Sep 2003 10:01:43 +0000
Subject: Re: AW: AW: [PEAR-DEV] solution for BC breakage
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21621@lists.php.net to get a copy of this message
On Wednesday, September 17, 2003 9:45, Stephan Schmidt wrote: > Hi, >> 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]. It is already there: http://pear.php.net/manual/en/standards.naming.php -- Tomas V.V.Cox mailto:cox@idecnet.com

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