summaryrefslogtreecommitdiffstats
path: root/env-pr10.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-22 15:05:35 +0200
committerRemi Collet <remi@remirepo.net>2020-09-22 15:05:35 +0200
commit9e5072893e7c11738085a5d21aec566637f1512d (patch)
treed2688f7722c04383c34d79dbcc4518e1ab93cd03 /env-pr10.patch
parent980e464e949499625e111e4855c8451d09272166 (diff)
add patch for PHP 8
from https://github.com/beberlei/env/pull/10
Diffstat (limited to 'env-pr10.patch')
-rw-r--r--env-pr10.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/env-pr10.patch b/env-pr10.patch
new file mode 100644
index 0000000..b4a754c
--- /dev/null
+++ b/env-pr10.patch
@@ -0,0 +1,25 @@
+From cf3d85f354489a39c96823332c797af45a4e781f Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 22 Sep 2020 15:01:31 +0200
+Subject: [PATCH] trivial fix for PHP 8
+
+---
+ env.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/env.h b/env.h
+index 85059ef..b0a67be 100644
+--- a/env.h
++++ b/env.h
+@@ -1,5 +1,11 @@
+ #ifndef ENV_H
+ #define ENV_H
++
++#ifndef TSRMLS_CC
++#define TSRMLS_CC
++#define TSRMLS_DC
++#endif
++
+ void php_env_module_init(HashTable *vars TSRMLS_DC);
+ void php_env_request_init(HashTable *vars TSRMLS_DC);
+ #endif