File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Macros.h
3
+ *
4
+ * Some macros have changed or have been removed between PHP versions.
5
+ * In this file we write custom versions of such macros to overcome that
6
+ *
7
+ * @author Emiel Bruijntjes <[email protected] >
8
+ * @copyright 2023 Copernica BV
9
+ */
10
+
11
+ /**
12
+ * Include guard
13
+ */
14
+ #pragma once
15
+
16
+ /**
17
+ * The "SEPARATE_ZVAL_IF_NOT_REF()" macro has been removed
18
+ */
19
+ #ifndef SEPARATE_ZVAL_IF_NOT_REF
20
+ #define SEPARATE_ZVAL_IF_NOT_REF (zv ) do { \
21
+ zval *_zv = (zv); \
22
+ if (Z_TYPE_P(_zv) == IS_ARRAY) { \
23
+ SEPARATE_ARRAY(_zv); \
24
+ } \
25
+ } while(0)
26
+ #endif
Original file line number Diff line number Diff line change 27
27
#include " includes.h"
28
28
#include " string.h"
29
29
#include " lowercase.h"
30
+ #include " macros.h"
30
31
31
32
/* *
32
33
* Set up namespace
You can’t perform that action at this time.
0 commit comments