summaryrefslogtreecommitdiffstats
path: root/68.patch
blob: b7d35f6d3aa8e0ef034b414694def0bbcc2525a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 1130578f37f48cec21b8d3eab7ffac96366662e1 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 12 Dec 2018 07:54:03 +0100
Subject: [PATCH] fix build with PHP 7.0

---
 php_taint.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/php_taint.h b/php_taint.h
index 8b26289..7961e50 100644
--- a/php_taint.h
+++ b/php_taint.h
@@ -65,6 +65,7 @@ extern zend_module_entry taint_module_entry;
 #define TAINT_OP2_TYPE(opline)	(opline->op2_type)
 
 #if PHP_VERSION_ID < 70100
+#define PHP_7_0 1
 #define TAINT_RET_USED(opline) (!((opline)->result_type & EXT_TYPE_UNUSED))
 #define TAINT_ISERR(var)       (var == &EG(error_zval))
 #define TAINT_ERR_ZVAL(var)    (var = &EG(error_zval))