X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=b54da54d2f0149395760dfa5746bcb2f989c9cff;hp=4ab7d7edbd1862d4eb6b2ab41ef7eb0666907717;hb=39cc1a2cc407bc6ca89829cffd1bfafd463720ca;hpb=378dd0f912b3139f1a797cf19e7c4eb88d33f141 diff --git a/http_api.c b/http_api.c index 4ab7d7e..b54da54 100644 --- a/http_api.c +++ b/http_api.c @@ -109,7 +109,7 @@ void _http_error_ex(long type TSRMLS_DC, long code, const char *format, ...) va_start(args, format); #ifdef ZEND_ENGINE_2 - if ((type == E_THROW) || (PG(error_handling) == EH_THROW)) { + if ((type == E_THROW) || (GLOBAL_ERROR_HANDLING == EH_THROW)) { char *message; zend_class_entry *ce = http_exception_get_for_code(code); @@ -117,7 +117,7 @@ void _http_error_ex(long type TSRMLS_DC, long code, const char *format, ...) vspprintf(&message, 0, format, args); zend_throw_exception(ce, message, code TSRMLS_CC); efree(message); - } http_catch(PG(exception_class) ? PG(exception_class) : HTTP_EX_DEF_CE); + } http_catch(GLOBAL_EXCEPTION_CLASS ? GLOBAL_EXCEPTION_CLASS : HTTP_EX_DEF_CE); } else #endif php_verror(NULL, "", type, format, args TSRMLS_CC); @@ -646,7 +646,7 @@ failure: /* }}} */ /* {{{ array_join */ -int apply_array_append_func(void *pDest, int num_args, va_list args, zend_hash_key *hash_key) +int apply_array_append_func(void *pDest HTTP_ZAPI_HASH_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key) { int flags; char *key = NULL; @@ -684,7 +684,7 @@ int apply_array_append_func(void *pDest, int num_args, va_list args, zend_hash_k return ZEND_HASH_APPLY_KEEP; } -int apply_array_merge_func(void *pDest, int num_args, va_list args, zend_hash_key *hash_key) +int apply_array_merge_func(void *pDest HTTP_ZAPI_HASH_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key) { int flags; char *key = NULL;