X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_negotiate.h;h=07e556431831dd5630db88bfc0443becbcf566da;hp=44f173589ea3369c54c87466fad1e7b9ac150472;hb=82923890d9ce44a0642ac2f5ea0cb343aaf50fe3;hpb=74e7358add4c74d212b91d23e8600ef3c10d081e 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(); \