summaryrefslogtreecommitdiffstats
path: root/2.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-04 14:52:37 +0200
committerRemi Collet <remi@remirepo.net>2020-09-04 14:52:37 +0200
commit01dbb935c95153d3f84764b71ebc355a8bd7fa57 (patch)
tree3da06e28b12e5ee1ccba5312df99f4c1a02ba975 /2.patch
parent1f04d39697b60a4084cf3a0d9bdf46c210358efe (diff)
add patch for PHP 8 from
https://github.com/php/pecl-text-ssdeep/pull/2
Diffstat (limited to '2.patch')
-rw-r--r--2.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/2.patch b/2.patch
new file mode 100644
index 0000000..69a001d
--- /dev/null
+++ b/2.patch
@@ -0,0 +1,29 @@
+From 369e87e7469fd3e30bf46cff9f12f0d5bfc9e611 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Fri, 4 Sep 2020 14:47:29 +0200
+Subject: [PATCH] fix for PHP 8
+
+---
+ ssdeep.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/ssdeep.c b/ssdeep.c
+index 00e91e5..4dee7e2 100644
+--- a/ssdeep.c
++++ b/ssdeep.c
+@@ -48,6 +48,15 @@
+ #include "php_ssdeep.h"
+ #include <fuzzy.h>
+
++/* For PHP 8 */
++#ifndef TSRMLS_D
++#define TSRMLS_D void
++#define TSRMLS_DC
++#define TSRMLS_C
++#define TSRMLS_CC
++#define TSRMLS_FETCH()
++#endif
++
+ /* True global resources - no need for thread safety here */
+ ZEND_BEGIN_ARG_INFO_EX(arginfo_ssdeep_fuzzy_hash, 0, 0, 1)
+ ZEND_ARG_INFO(0, to_hash)