svn: /pear2/Exception/trunk/src/ Exception.php

From: Date: Mon, 22 Feb 2010 00:25:00 +0000
Subject: svn: /pear2/Exception/trunk/src/ Exception.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9191@lists.php.net to get a copy of this message
dufuz Mon, 22 Feb 2010 00:25:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295344 Log: Kill off signal() since it's private and was only 5 lines Changed paths: U pear2/Exception/trunk/src/Exception.php Modified: pear2/Exception/trunk/src/Exception.php =================================================================== --- pear2/Exception/trunk/src/Exception.php 2010-02-22 00:24:05 UTC (rev 295343) +++ pear2/Exception/trunk/src/Exception.php 2010-02-22 00:25:00 UTC (rev 295344) @@ -111,7 +111,12 @@ } parent::__construct($message, $code, $cause); - $this->signal(); + + foreach (self::$_observers as $func) { + if (is_callable($func)) { + call_user_func($func, $this); + } + } } /** @@ -132,15 +137,6 @@ unset(self::$_observers[$label]); } - private function signal() - { - foreach (self::$_observers as $func) { - if (is_callable($func)) { - call_user_func($func, $this); - } - } - } - /** * Function must be public to call on caused exceptions * @param array

« previous php.pear.core (#9191) next »