cvs: pear-core /PEAR Exception.php
| From: | Greg Beaver | Date: | Thu, 02 Sep 2004 04:00:20 +0000 |
| Subject: | cvs: pear-core /PEAR Exception.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-23574@lists.php.net to get a copy of this message | ||
cellog Thu Sep 2 00:00:20 2004 EDT
Modified files:
/pear-core/PEAR Exception.php
Log:
remove PEAR_EXCEPTION_CLASSCALLBACK
(Alan is right)
http://cvs.php.net/diff.php/pear-core/PEAR/Exception.php?r1=1.12&r2=1.13&ty=u
Index: pear-core/PEAR/Exception.php
diff -u pear-core/PEAR/Exception.php:1.12 pear-core/PEAR/Exception.php:1.13
--- pear-core/PEAR/Exception.php:1.12 Wed Sep 1 23:32:23 2004
+++ pear-core/PEAR/Exception.php Thu Sep 2 00:00:19 2004
@@ -19,12 +19,11 @@
// | Greg Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Exception.php,v 1.12 2004/09/02 03:32:23 cellog Exp $
+// $Id: Exception.php,v 1.13 2004/09/02 04:00:19 cellog Exp $
define('PEAR_OBSERVER_PRINT', -2);
define('PEAR_OBSERVER_TRIGGER', -4);
define('PEAR_OBSERVER_DIE', -8);
-define('PEAR_OBSERVER_CLASSCALLBACK', -16);
/**
* Base PEAR_Exception Class
@@ -90,7 +89,7 @@
*
* @since PHP 5
* @package PEAR
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
* @author Tomas V.V.Cox <cox@idecnet.com>
* @author Hans Lellelid <hans@velum.net>
* @author Bertrand Mansion <bmansion@mamasam.com>
@@ -168,16 +167,6 @@
case PEAR_EXCEPTION_DIE :
$f = (isset($func[1])) ? $func[1] : '%s';
die(printf($f, $this->getMessage()));
- break;
- case PEAR_OBSERVER_CLASSCALLBACK :
- $f = (isset($func[1])) ? $func[1] : false;
- if (is_array($f) && isset($f['class']) &&
isset($f['callback'])) {
- if ($this instanceof $f['class']) {
- if (is_callable($f['callback'])) {
- call_user_func($f['callback'], $this);
- }
- }
- }
break;
default:
trigger_error('invalid observer type', E_USER_WARNING);