summaryrefslogtreecommitdiffstats
path: root/rrd-php85.patch
blob: da8975926c0a28592cffd49194b5b87c482b8e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
From dd4856dc89499a0141b1710e791f0e1096c7b244 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 30 Jul 2025 13:39:24 +0200
Subject: [PATCH] use Zend/zend_smart_string.h

---
 rrd.c        | 4 ++++
 rrd_graph.c  | 4 ++++
 rrd_update.c | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/rrd.c b/rrd.c
index ab19b41..ff51776 100644
--- a/rrd.c
+++ b/rrd.c
@@ -12,7 +12,11 @@
 #endif
 
 #include "php.h"
+#if PHP_VERSION_ID < 70200
 #include "ext/standard/php_smart_string.h"
+#else
+#include "Zend/zend_smart_string.h"
+#endif
 #include "ext/standard/php_array.h"
 #include "ext/standard/info.h"
 
diff --git a/rrd_graph.c b/rrd_graph.c
index 96a47f4..0e43550 100644
--- a/rrd_graph.c
+++ b/rrd_graph.c
@@ -14,7 +14,11 @@
 
 #include "php.h"
 #include "zend_exceptions.h"
+#if PHP_VERSION_ID < 70200
 #include "ext/standard/php_smart_string.h"
+#else
+#include "Zend/zend_smart_string.h"
+#endif
 
 #include <rrd.h>
 
diff --git a/rrd_update.c b/rrd_update.c
index 1fc4573..e21c778 100644
--- a/rrd_update.c
+++ b/rrd_update.c
@@ -14,7 +14,11 @@
 
 #include "php.h"
 #include "zend_exceptions.h"
+#if PHP_VERSION_ID < 70200
 #include "ext/standard/php_smart_string.h"
+#else
+#include "Zend/zend_smart_string.h"
+#endif
 
 #include <rrd.h>
 
-- 
2.50.1