hi,
The PEAR.php file in PEAR lib contans the following syntax:
On top of the file a global is defined as:
$GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN;
then below in the file, in setErrorHandling();
we see a code:
<pre>
if (isset($this)) {
$setmode = &$this->default_error_mode;
$setoptions = &$this->default_error_options;
//$setcallback = &$this->default_error_callback;
} else {
$setmode = &$GLOBALS['PEAR_default_error_mode'];
$setoptions = &$GLOBALS['PEAR_default_error_options'];
//$setcallback = &$GLOBALS['PEAR_default_error_callback'];
}
</pre>
above in 'else' block, lets say for $setmode ... is that declaring the same global again or is it simply making $setmode equal to the above global?
i guess its the syntax or general PHP knowledge issue.. am lacking it! 🙂
thanks guys,
Daarius...