diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2014-11-28 11:01:03 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-11-28 11:01:03 +0100 |
commit | 134f5c36ced7c5ffbb42666e424f0153015075ea (patch) | |
tree | b26d4a901281ebfcb0f67c498ec5b30f9a387b43 /Csrf | |
parent | fafe52da765633f82ff5ceccdc93f9ec7fc40f5c (diff) | |
parent | 9faf405e51ebfb43f1fb83300528b71ad70af020 (diff) | |
download | symfony-security-134f5c36ced7c5ffbb42666e424f0153015075ea.zip symfony-security-134f5c36ced7c5ffbb42666e424f0153015075ea.tar.gz symfony-security-134f5c36ced7c5ffbb42666e424f0153015075ea.tar.bz2 |
Merge branch '2.7'
* 2.7: (36 commits)
[Debug] fix error message on double exception
[Validator] make DateTime objects represented as strings in the violation message.
[RFC] [DebugBundle] [HttpKernel] Avoid using container as dependency for DumpListener
Upgrade information for the Translation component regarding the new LoggingTranslator class.
[WebProfilerBundle] Remove usage of app.request in search bar template
Fix initialized() with aliased services
fix data type in docblock
Rename Symfony2 to Symfony
bumped Symfony version to 2.6.0
updated VERSION for 2.6.0-BETA2
updated CHANGELOG for 2.6.0-BETA2
[Debug] fix ENT_SUBSTITUTE usage
compare version using PHP_VERSION_ID
backport #12489
remove an unneeded check
Remove block submit_widget
reformat code as suggested by @fabpot
Fix typo
Make `\Request::get` more performant.
properly set request attributes in controller test
...
Diffstat (limited to 'Csrf')
-rw-r--r-- | Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php | 2 | ||||
-rw-r--r-- | Csrf/TokenStorage/NativeSessionTokenStorage.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php index 724806c..7ae2779 100644 --- a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php +++ b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php @@ -51,7 +51,7 @@ class NativeSessionTokenStorageTest extends \PHPUnit_Framework_TestCase public function testStoreTokenInClosedSessionWithExistingSessionId() { - if (version_compare(PHP_VERSION, '5.4', '<')) { + if (PHP_VERSION_ID < 50400) { $this->markTestSkipped('This test requires PHP 5.4 or later.'); } diff --git a/Csrf/TokenStorage/NativeSessionTokenStorage.php b/Csrf/TokenStorage/NativeSessionTokenStorage.php index af5931b..bb1a417 100644 --- a/Csrf/TokenStorage/NativeSessionTokenStorage.php +++ b/Csrf/TokenStorage/NativeSessionTokenStorage.php @@ -108,7 +108,7 @@ class NativeSessionTokenStorage implements TokenStorageInterface private function startSession() { - if (version_compare(PHP_VERSION, '5.4', '>=')) { + if (PHP_VERSION_ID >= 50400) { if (PHP_SESSION_NONE === session_status()) { session_start(); } |