merged branch drak/session_interface (PR #3342)
Commits
-------
137b002
[HttpFoundation] Make SessionHandlerInterface compatible with PHP 5.4's SessionHandlerInterface
Discussion
----------
[HttpFoundation] Make Sessions compatible with PHP 5.4's SessioHandlerInterface
Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
This commit is contained in:
commit
3e70646a67
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user