From 647a092db1580ff04cacd857f0a2e2fbed1f5758 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Jun 2021 14:39:58 +0200 Subject: add patch for PHP 8.1 from https://github.com/websupport-sk/pecl-memcache/pull/88 --- memcache-php81.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 memcache-php81.patch (limited to 'memcache-php81.patch') diff --git a/memcache-php81.patch b/memcache-php81.patch new file mode 100644 index 0000000..5dbd7dc --- /dev/null +++ b/memcache-php81.patch @@ -0,0 +1,25 @@ +From d20c716286034a0d21cd5505a046351aceea4cbc Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Thu, 10 Jun 2021 14:21:03 +0200 +Subject: [PATCH] Fix Deprecated: memcache_connect(): Passing null to + parameter #2... + +--- + src/memcache.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/memcache.c b/src/memcache.c +index 3048819..2cb675b 100644 +--- a/src/memcache.c ++++ b/src/memcache.c +@@ -1319,8 +1319,9 @@ static void php_mmc_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool persistent) + size_t host_len; + zend_long tcp_port = MEMCACHE_G(default_port); + double timeout = MMC_DEFAULT_TIMEOUT; ++ zend_bool null_port; + +- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ld", &host, &host_len, &tcp_port, &timeout) == FAILURE) { ++ if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l!d", &host, &host_len, &tcp_port, &null_port, &timeout) == FAILURE) { + return; + } + -- cgit