Skip to content

Commit 55148d8

Browse files
author
Mikhail Galanin
committed
PHP8 compatibility: TSRMLS* macroses were removed as of 8.0
1 parent a631b56 commit 55148d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/php_tarantool.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
# define smart_string_free_ex(...) smart_str_free_ex(__VA_ARGS__)
3030
#endif
3131

32+
#if PHP_VERSION_ID >= 80000
33+
/* these macroses were removed in PHP8 */
34+
# define TSRMLS_CC
35+
# define TSRMLS_DC
36+
# define TSRMLS_FETCH()
37+
#endif
38+
3239
#if PHP_VERSION_ID < 70300
3340
# define GC_SET_REFCOUNT(p, rc) do { \
3441
GC_REFCOUNT((p)) = (rc); \

0 commit comments

Comments
 (0)