Skip to content

Commit 855971a

Browse files
committed
feature #24443 [Session] deprecate MemcacheSessionHandler (Tobion)
This PR was merged into the 3.4 branch. Discussion ---------- [Session] deprecate MemcacheSessionHandler | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | memcache extension didn't get a release since 4.5 years and is not compatible with PHP 7. see https://pecl.php.net/package/memcache also the cache and lock components only provide adapters for memcached as well, no memcache Commits ------- 989326b [Session] deprecate MemcacheSessionHandler
2 parents 51a1b57 + 989326b commit 855971a

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

UPGRADE-3.4.md

+3
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ HttpFoundation
243243
* Using `Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler` with the legacy mongo extension
244244
has been deprecated and will be removed in 4.0. Use it with the mongodb/mongodb package and ext-mongodb instead.
245245

246+
* The `Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler` class has been deprecated and
247+
will be removed in 4.0. Use `Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler` instead.
248+
246249
HttpKernel
247250
----------
248251

UPGRADE-4.0.md

+3
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ HttpFoundation
545545
* The `Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler` does not work with the legacy
546546
mongo extension anymore. It requires mongodb/mongodb package and ext-mongodb.
547547

548+
* The `Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler` class has been removed.
549+
Use `Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler` instead.
550+
548551
HttpKernel
549552
----------
550553

src/Symfony/Component/HttpFoundation/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CHANGELOG
88
* deprecated the `AbstractProxy`, `NativeProxy` and `SessionHandlerProxy` classes,
99
* deprecated setting session save handlers that do not implement `\SessionHandlerInterface` in `NativeSessionStorage::setSaveHandler()`
1010
* deprecated using `MongoDbSessionHandler` with the legacy mongo extension; use it with the mongodb/mongodb package and ext-mongodb instead
11+
* deprecated `MemcacheSessionHandler`; use `MemcachedSessionHandler` instead
1112

1213
3.3.0
1314
-----

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php

+4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Session\Storage\Handler;
1313

14+
@trigger_error(sprintf('The class %s is deprecated since version 3.4 and will be removed in 4.0. Use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler instead.', MemcacheSessionHandler::class), E_USER_DEPRECATED);
15+
1416
/**
1517
* @author Drak <drak@zikula.org>
18+
*
19+
* @deprecated since version 3.4, to be removed in 4.0. Use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler instead.
1620
*/
1721
class MemcacheSessionHandler implements \SessionHandlerInterface
1822
{

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/**
1818
* @requires extension memcache
1919
* @group time-sensitive
20+
* @group legacy
2021
*/
2122
class MemcacheSessionHandlerTest extends TestCase
2223
{

0 commit comments

Comments
 (0)