From 26ee817a0e5a2bed4994fd4efc13e7f5106ca55c Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Sat, 7 Aug 2021 22:33:21 +0200 Subject: PHP7 compatibility --- src/sp_php_compat.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/sp_php_compat.h (limited to 'src/sp_php_compat.h') 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 @@ +#if PHP_VERSION_ID < 80000 +ZEND_API zend_string *zend_string_concat2( + const char *str1, size_t str1_len, + const char *str2, size_t str2_len); + +#define ZEND_HASH_REVERSE_FOREACH_KEY_PTR(ht, _h, _key, _ptr) \ + ZEND_HASH_REVERSE_FOREACH(ht, 0); \ + _h = _p->h; \ + _key = _p->key; \ + _ptr = Z_PTR_P(_z); + +#endif \ No newline at end of file -- cgit v1.3