summaryrefslogtreecommitdiffstats
path: root/68.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-12-12 08:03:24 +0100
committerRemi Collet <remi@remirepo.net>2018-12-12 08:03:24 +0100
commitb419007a79ef0ae5e27134190614380d27c690ae (patch)
tree7eae5b1d3da120f48095d7d83e43db51b1400584 /68.patch
parent507aa10fdd018724ea4855c2dd2c6477416c73e3 (diff)
Update to 2.0.5
add patch for PHP 7.0 from https://github.com/laruence/taint/pull/68
Diffstat (limited to '68.patch')
-rw-r--r--68.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/68.patch b/68.patch
new file mode 100644
index 0000000..b7d35f6
--- /dev/null
+++ b/68.patch
@@ -0,0 +1,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))