summaryrefslogtreecommitdiff
path: root/src/sp_php_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_php_compat.h')
-rw-r--r--src/sp_php_compat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sp_php_compat.h b/src/sp_php_compat.h
new file mode 100644
index 0000000..380abe4
--- /dev/null
+++ b/src/sp_php_compat.h
@@ -0,0 +1,12 @@
1#if PHP_VERSION_ID < 80000
2ZEND_API zend_string *zend_string_concat2(
3 const char *str1, size_t str1_len,
4 const char *str2, size_t str2_len);
5
6#define ZEND_HASH_REVERSE_FOREACH_KEY_PTR(ht, _h, _key, _ptr) \
7 ZEND_HASH_REVERSE_FOREACH(ht, 0); \
8 _h = _p->h; \
9 _key = _p->key; \
10 _ptr = Z_PTR_P(_z);
11
12#endif \ No newline at end of file