From 09b348dda2a565d5c2fce132d951a97f1b3540c3 Mon Sep 17 00:00:00 2001 From: Drak Date: Mon, 13 Feb 2012 11:59:56 +0545 Subject: [PATCH] [HttpFoundation] Forward compatibility tweak to allows direct use of \SessionHandlerInterface --- .../Session/Storage/AbstractSessionStorage.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/AbstractSessionStorage.php b/src/Symfony/Component/HttpFoundation/Session/Storage/AbstractSessionStorage.php index f3d70ff4c0..799a8187b9 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/AbstractSessionStorage.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/AbstractSessionStorage.php @@ -13,6 +13,11 @@ namespace Symfony\Component\HttpFoundation\Session\Storage; use Symfony\Component\HttpFoundation\Session\SessionBagInterface; +// force load forward compatability for PHP 5.4's SessionHandlerInterface if necessary. +if (version_compare(phpversion(), '5.4.0', '<')) { + interface_exists('Symfony\Component\HttpFoundation\Session\Storage\SessionHandlerInterface'); +} + /** * This provides a base class for session attribute storage. *