-
Notifications
You must be signed in to change notification settings - Fork 53
Cache miss will throw Zend\Serializer\Exception on PHP7 using Zend\Serializer\Adapter\Json #95
Comments
mh please provide an example code that fails for you. |
Example code running on latest master bc215ac with PHP 7.0.5. <?php
require 'vendor/autoload.php';
$cache = \Zend\Cache\StorageFactory::adapterFactory('memcached', ['servers' => ['127.0.0.1']]);
$cache->addPlugin(\Zend\Cache\StorageFactory::pluginFactory('serializer', ['serializer' => 'json']));
$cache->getItem('cacheMiss');
|
@yuripave The serializer plugin was trying to unserialize values of missing items ( Please try #96 if that works for you. Thanks! |
Tested and works great, thanks! |
No. We only backport security fixes, and fixes for issues that were regressions introduced by the 2.4 series itself. |
Due to zendframework/zend-json#23,
Zend\Serializer\Exception
will be thrown when cache miss on PHP7 if usingZend\Cache\Storage\Plugin\Serializer
withZend\Serializer\Adapter\Json
.The text was updated successfully, but these errors were encountered: