mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-20 01:21:22 +01:00
FIX: Remove finally to support PHP 5.3 session test cleanup
This commit is contained in:
@@ -88,13 +88,20 @@ class CHttpSessionTest extends CTestCase {
|
||||
|
||||
$this->assertNotSame('', session_id());
|
||||
$this->assertFalse($deprecationTriggered, 'session_set_save_handler() deprecation was triggered');
|
||||
} finally
|
||||
} catch(Exception $e)
|
||||
{
|
||||
if($session !== null && session_id() !== '')
|
||||
{
|
||||
$session->close();
|
||||
}
|
||||
restore_error_handler();
|
||||
throw $e;
|
||||
}
|
||||
|
||||
if($session !== null && session_id() !== '')
|
||||
{
|
||||
$session->close();
|
||||
}
|
||||
restore_error_handler();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user