From 1b68fe77b9674e1f1da4fa0e8706e3a35f1eda03 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Fri, 2 Oct 2020 10:53:28 +0300 Subject: [PATCH] fix php 8.0 build fci.no_separation removed on php 8.0. https://github.com/php/php-src/commit/302933daea77663f5759b10accd1d0231393b24c --- php_memcached_server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php_memcached_server.c b/php_memcached_server.c index 4c0080e..870209c 100644 --- a/php_memcached_server.c +++ b/php_memcached_server.c @@ -63,7 +63,9 @@ long s_invoke_php_callback (php_memc_server_cb_t *cb, zval *params, ssize_t para cb->fci.retval = retval; cb->fci.params = params; cb->fci.param_count = param_count; +#if PHP_VERSION_ID < 80000 cb->fci.no_separation = 1; +#endif if (zend_call_function(&(cb->fci), &(cb->fci_cache)) == FAILURE) { char *buf = php_memc_printable_func(&(cb->fci), &(cb->fci_cache));