diff options
author | Remi Collet <remi@remirepo.net> | 2020-08-24 10:39:45 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-08-24 10:39:45 +0200 |
commit | cd9671cc2876deab702fe68925ac7f53f6aea1a7 (patch) | |
tree | cd2adf63ae6fd21c10743f653a673bece4cd8ee0 /66.patch | |
parent | 26d03d41e08cafece3d42959da7c53af1a8af2cc (diff) |
add patch for PHP 8 from
https://github.com/nrk/phpiredis/pull/66
Diffstat (limited to '66.patch')
-rw-r--r-- | 66.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/66.patch b/66.patch new file mode 100644 index 0000000..7d7b117 --- /dev/null +++ b/66.patch @@ -0,0 +1,25 @@ +From 488ea66312bd392eb890cf276529940abb91ae06 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 24 Aug 2020 10:32:53 +0200 +Subject: [PATCH] fix for upcoming PHP 8 + +--- + phpiredis.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/phpiredis.c b/phpiredis.c +index 952724a..2665fee 100644 +--- a/phpiredis.c ++++ b/phpiredis.c +@@ -28,6 +28,11 @@ int le_redis_persistent_context; + typedef long zend_long; + #endif + ++#ifndef TSRMLS_CC ++#define TSRMLS_CC ++#define TSRMLS_DC ++#endif ++ + typedef struct callback { + #ifdef ZEND_ENGINE_3 + zval function; |