cleanup TSRMLS_C macro

- only used on PHP 5 (not supported by this ext.)
- not needed on PHP 7
- removed from PHP 8
This commit is contained in:
Remi Collet
2020-06-22 15:01:30 +02:00
parent 912ab43641
commit 40a2bd60e4
7 changed files with 43 additions and 43 deletions

View File

@@ -66,13 +66,13 @@ ZEND_TSRMLS_CACHE_EXTERN()
/* Tries to find given key in array */ \
data##key = zend_hash_str_find(hashtable, #key, sizeof(#key)-1); \
if (data##key == nullptr) { \
zend_throw_exception_ex(zend_ce_exception, 0 TSRMLS_CC, #error_key_missing); \
zend_throw_exception_ex(zend_ce_exception, 0, #error_key_missing); \
return; \
} \
\
/* We also need to check proper type of value in associative array */ \
if (Z_TYPE_P(data##key) != IS_LONG) { \
zend_throw_exception_ex(zend_ce_exception, 0 TSRMLS_CC, #error_key_not_long); \
zend_throw_exception_ex(zend_ce_exception, 0, #error_key_not_long); \
return; \
} \
zend_long key = Z_LVAL_P(data##key); \