Skip to content
Browse files

Merge branch 'hotfix/zend-session-configuration-setphpsavehandler' of h…

…ttps://github.com/mwillbanks/zf2 into hotfix/session-configuration-setphpsavehandler
  • Loading branch information...
2 parents 98db0d9 + 0ed6363 commit 532b17c523e849f20bca947dd07269ce09930cd2 @weierophinney weierophinney committed Feb 29, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 library/Zend/Session/Configuration/SessionConfiguration.php
View
10 library/Zend/Session/Configuration/SessionConfiguration.php
@@ -166,21 +166,21 @@ protected function handleError($code, $message)
/**
* Set session.save_handler
*
- * @param string $saveHandler
+ * @param string $phpSaveHandler
* @return SessionConfiguration
* @throws SessionException
*/
- public function setPhpSaveHandler($saveHandler)
+ public function setPhpSaveHandler($phpSaveHandler)
{
- $saveHandler = (string) $saveHandler;
+ $phpSaveHandler = (string) $phpSaveHandler;
set_error_handler(array($this, 'handleError'));
- ini_set('session.save_handler', $saveHandler);
+ ini_set('session.save_handler', $phpSaveHandler);
restore_error_handler();
if ($this->phpErrorCode >= E_WARNING) {
throw new Exception\InvalidArgumentException('Invalid save handler specified');
}
- $this->setOption('save_handler', $saveHandler);
+ $this->setOption('save_handler', $phpSaveHandler);
return $this;
}

0 comments on commit 532b17c

Please sign in to comment.
Something went wrong with that request. Please try again.