Re: easier error reporting
| From: | Chuck Hagenbuch | Date: | Mon, 08 Jan 2001 14:53:59 +0000 |
| Subject: | Re: easier error reporting | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-870@lists.php.net to get a copy of this message | ||
(hope you don't mind me bringing this back to the list)
Quoting "Stig S. Bakken" <ssb@fast.no>:
> It would have to be a global variable, there is no other way. I use
> global variables in PEAR_Installer for example (for registering
> temporary files that should be cleaned up at exit), with a really
> verbose naming scheme; underscore, then the "package name" and then the
> variable name ($_PEAR_Installer_tempfiles).
Okay. Given that we have no other way than global variables to do this, and
that there will certainly be other classes that need similar functionality, we
should define a standard for global variables in PEAR.
$_<classname>_<varname> is a good start. Comments?
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"If you can't stand the heat, get out of the chicken!" - Baby Blues