From 7c57a24fd3e5f2213509da4ef7e3439161fe69e0 Mon Sep 17 00:00:00 2001 From: Josh Rai Date: Thu, 16 Jan 2025 17:13:59 -0800 Subject: [PATCH] Fall back to ZLIB to decompress payload with unspecified compression type --- php_memcached.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php_memcached.c b/php_memcached.c index c8abb844..3a87fe57 100644 --- a/php_memcached.c +++ b/php_memcached.c @@ -3739,8 +3739,8 @@ zend_string *s_decompress_value (const char *payload, size_t payload_len, uint32 #endif if (!is_fastlz && !is_zlib && !is_zstd) { - php_error_docref(NULL, E_WARNING, "could not decompress value: unrecognised compression type"); - return NULL; + // Fall back to ZLIB. + is_zlib = 1; } memcpy(&stored_length, payload, sizeof (uint32_t));