cvs: pear-core / PEAR.php
| From: | Greg Beaver | Date: | Sun, 05 Mar 2006 21:13:33 +0000 |
| Subject: | cvs: pear-core / PEAR.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4608@lists.php.net to get a copy of this message | ||
cellog Sun Mar 5 21:13:33 2006 UTC
Modified files:
/pear-core PEAR.php
Log:
remove err suppression @
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR.php?r1=1.98&r2=1.99&diff_format=u
Index: pear-core/PEAR.php
diff -u pear-core/PEAR.php:1.98 pear-core/PEAR.php:1.99
--- pear-core/PEAR.php:1.98 Mon Jan 23 05:38:05 2006
+++ pear-core/PEAR.php Sun Mar 5 21:13:33 2006
@@ -20,7 +20,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: PEAR.php,v 1.98 2006/01/23 05:38:05 cellog Exp $
+ * @version CVS: $Id: PEAR.php,v 1.99 2006/03/05 21:13:33 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -230,6 +230,12 @@
function &getStaticProperty($class, $var)
{
static $properties;
+ if (!isset($properties[$class])) {
+ $properties[$class] = array();
+ }
+ if (!array_key_exists($properties[$class][$var])) {
+ $properties[$class][$var] = null;
+ }
return $properties[$class][$var];
}
@@ -767,7 +773,7 @@
sizeof($_PEAR_destructor_object_list))
{
reset($_PEAR_destructor_object_list);
- if (@PEAR::getStaticProperty('PEAR', 'destructlifo')) {
+ if (PEAR::getStaticProperty('PEAR', 'destructlifo')) {
$_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
}
while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
@@ -859,7 +865,7 @@
$this->mode = $mode;
$this->userinfo = $userinfo;
if (function_exists("debug_backtrace")) {
- if (@!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) {
+ if (!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) {
$this->backtrace = debug_backtrace();
}
}