From 4c734e4ae639bf8b72d04ac95bbce43e31de25bc Mon Sep 17 00:00:00 2001 From: prolic Date: Wed, 23 May 2012 22:02:05 +0200 Subject: [PATCH] replaced "get_class()" with "get_called_class()" because it's faster --- library/Zend/Wildfire/Channel/HttpHeaders.php | 2 +- library/Zend/Wildfire/Protocol/JsonStream.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Zend/Wildfire/Channel/HttpHeaders.php b/library/Zend/Wildfire/Channel/HttpHeaders.php index aaadcbb1663..6cf38780d85 100644 --- a/library/Zend/Wildfire/Channel/HttpHeaders.php +++ b/library/Zend/Wildfire/Channel/HttpHeaders.php @@ -201,7 +201,7 @@ public static function setControllerPluginStackIndex($index) protected function _registerControllerPlugin() { $controller = Controller\Front::getInstance(); - if (!$controller->hasPlugin(get_class($this))) { + if (!$controller->hasPlugin(get_called_class())) { $controller->registerPlugin($this, self::$_controllerPluginStackIndex); } } diff --git a/library/Zend/Wildfire/Protocol/JsonStream.php b/library/Zend/Wildfire/Protocol/JsonStream.php index 7fe0c4788e7..7b952be71dd 100644 --- a/library/Zend/Wildfire/Protocol/JsonStream.php +++ b/library/Zend/Wildfire/Protocol/JsonStream.php @@ -153,7 +153,7 @@ protected function _encode($value) public function getPayload(Wildfire\Channel $channel) { if (!$channel instanceof Wildfire\Channel\HttpHeaders) { - throw new Exception\InvalidArgumentException('The '.get_class($channel).' channel is not supported by the '.get_class($this).' protocol.'); + throw new Exception\InvalidArgumentException('The '.get_class($channel).' channel is not supported by the '.get_called_class().' protocol.'); } if ($this->_plugins) {