-
Notifications
You must be signed in to change notification settings - Fork 53
Memcached adapter store bug in internalSetItems method for PHP 7.0 #66
Comments
hi @malinink As you describe it looks like you the value gets serialized which has nothing to do with the variable by reference you linked. Please provide a code example incl. how you setup the storage adapter and call to write/read with data as |
@DCMNMarc
That is test screen:
It seems like adapter could get and set such kind of values but it store them as none integer values, so increment doesn't work. That is real value stored in memcached
Normally that value must be (and that happens in setItem() method)
That is error itself
|
@marc-mabe |
@malinink nice but the issue should be closed on merging that PR - thanks |
@marc-mabe That is one thing I don't think about. |
There is a bug (may be it is a feature)
When I store multiple keys at once instead of storing values (for example int(0) ) it stores something like
The reason is in https://github.com/zendframework/zend-cache/blob/master/src/Storage/Adapter/Memcached.php#L403
Code below fixes issue
It seems to me that it may be related to all other adapters cause all of them have the same code.
I could provide test if it is necessary.
The text was updated successfully, but these errors were encountered: