awslabs / aws-elasticache-cluster-client-memcached-for-php

Amazon ElastiCache Cluster Client is an enhanced PHP library to connect to ElastiCache clusters. This client library has been built upon libmemcached and is released under the Apache License.
Other
62 stars 33 forks source link

Broken backward compatibility between PHP 7.0 and 7.2 ElastiCache clients with consistent distribution #28

Closed antydemant closed 4 years ago

antydemant commented 5 years ago

If you are downloading ElastiCache client for PHP 7.2 by the following link https://elasticache-downloads.s3.amazonaws.com/ClusterClient/PHP-7.2/latest-64bit you might have an issue with backward compatibility between clients for PHP 7.2 and PHP 7.0. with consistent distribution.

PHP 7.0 & ElastiCache (libmemcahed 1.0.18) image

PHP 7.2 & ElastiCache (downgraded libmemcached 1.0.8) *old configuration with broken consistent distribution backward compatability image

Please pay attention if you are using consistent distribution

$client = new Memcached();
$client->setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT);

you might have different behavior with the mentioned option!

yzhaon commented 4 years ago

ElastiCache memcached client for PHP 7.2 built against libmemcached 1.0.18 have been released to the public S3 bucket.

Steps to download the client are here https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/Appendix.PHPAutoDiscoverySetup.Downloading.html

Closing this issue.