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:
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user