diff options
| author | Ben Fuhrmannek | 2021-08-07 22:33:21 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-08-07 22:33:21 +0200 |
| commit | 26ee817a0e5a2bed4994fd4efc13e7f5106ca55c (patch) | |
| tree | 5cb9d274592fa4869c10a25affec977ce8b778a8 /src/sp_php_compat.h | |
| parent | 51c020904f25ac7400e4db2e5174edc8c49fcb43 (diff) | |
PHP7 compatibility
Diffstat (limited to 'src/sp_php_compat.h')
| -rw-r--r-- | src/sp_php_compat.h | 12 |
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 | ||
| 2 | ZEND_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 | ||
