FIX: Remove finally to support PHP 5.3 session test cleanup

This commit is contained in:
erwin
2025-12-09 11:59:43 +01:00
parent 64b2da0f9c
commit 4ef0c1b444

View File

@@ -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();
}
}