Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasweidner committed Jun 26, 2011
11 parents b23edec + d0c5d5b + ebf227a + 78cdefd + 033ab4d + 5013d43 + c0d814f + 1845030 + a714cd1 + f1de588 + 90636d5 commit e1d7b9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Backend/StaticBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function clean($mode = Cache\Cache::CLEANING_MODE_ALL, $tags = array())
case Cache\Cache::CLEANING_MODE_MATCHING_TAG:
case Cache\Cache::CLEANING_MODE_MATCHING_ANY_TAG:
if (empty($tags)) {
throw new end\Exception('Cannot use tag matching modes as no tags were defined');
throw new \InvalidArgumentException('Cannot use tag matching modes as no tags were defined');
}
if ($this->_tagged === null && $tagged = $this->getInnerCache()->load(self::INNER_CACHE_NAME)) {
$this->_tagged = $tagged;
Expand Down Expand Up @@ -429,7 +429,7 @@ public function clean($mode = Cache\Cache::CLEANING_MODE_ALL, $tags = array())
break;
case Cache\Cache::CLEANING_MODE_NOT_MATCHING_TAG:
if (empty($tags)) {
throw new \Zend\Exception('Cannot use tag matching modes as no tags were defined');
throw new \InvalidArgumentException('Cannot use tag matching modes as no tags were defined');
}
if ($this->_tagged === null) {
$tagged = $this->getInnerCache()->load(self::INNER_CACHE_NAME);
Expand Down
5 changes: 3 additions & 2 deletions src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
namespace Zend\Cache;

/**
* @uses \Zend\Exception
* @uses \Exception
* @category Zend
* @package Zend_Cache
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Exception extends \Zend\Exception {}
class Exception extends \Exception {}
2 changes: 1 addition & 1 deletion src/Frontend/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function start($id = false, $doNotDie = false)
if ($doNotDie) {
return true;
}
die();
exit();
}
ob_start(array($this, '_flush'));
ob_implicit_flush(false);
Expand Down

0 comments on commit e1d7b9a

Please sign in to comment.