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

From: Date: Wed, 17 Sep 2003 07:45:54 +0000
Subject: AW: AW: [PEAR-DEV] solution for BC breakage
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21605@lists.php.net to get a copy of this message
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]. Stephan

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