X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_negotiate.h;fp=src%2Fphp_http_negotiate.h;h=07e556431831dd5630db88bfc0443becbcf566da;hp=44f173589ea3369c54c87466fad1e7b9ac150472;hb=6687800e97bf941bd1938a3ce749dd72834904ed;hpb=208f820769bb9b0dc7f0e57670bf8647946d25a7 diff --git a/src/php_http_negotiate.h b/src/php_http_negotiate.h index 44f1735..07e5564 100644 --- a/src/php_http_negotiate.h +++ b/src/php_http_negotiate.h @@ -74,9 +74,10 @@ static inline HashTable *php_http_negotiate_content_type(HashTable *supported, p #define PHP_HTTP_DO_NEGOTIATE_DEFAULT(supported) \ { \ zval *value; \ + HashPosition pos; \ \ - zend_hash_internal_pointer_reset((supported)); \ - if ((value = zend_hash_get_current_data((supported)))) { \ + zend_hash_internal_pointer_reset_ex((supported), &pos); \ + if ((value = zend_hash_get_current_data_ex((supported), &pos))) { \ RETVAL_ZVAL(value, 1, 0); \ } else { \ RETVAL_NULL(); \