[PECL-CVS] [pecl-search_engine-solr] master: fix type deduction errors

[email protected] (omars44) Thu, 25 Jun 2026 04:52:08 +0000
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: omars44 (omars44)
Date: 2026-06-15T11:56:34+03:00

Commit: https://github.com/php/pecl-search_engine-solr/commit/6967ae8a0a90037c9b15fc60dcde4e7a7b5e19ea
Raw diff: https://github.com/php/pecl-search_engine-solr/commit/6967ae8a0a90037c9b15fc60dcde4e7a7b5e19ea.diff

fix type deduction errors

Changed paths:
  M  src/solr_functions_params.c
  M  src/solr_string.c


Diff:

diff --git a/src/solr_functions_params.c b/src/solr_functions_params.c
index f6edc074..1d8d1bba 100644
--- a/src/solr_functions_params.c
+++ b/src/solr_functions_params.c
@@ -645,7 +645,7 @@ PHP_SOLR_API void solr_simple_list_param_value_fetch(solr_param_t *solr_param, s
 	solr_param_value_t *current_ptr = solr_param->head;
 	solr_char_t list_delimiter = ','; /* Comma 0x2C */
 	zend_ulong n_loops = solr_param->count - 1;
-	auto solr_string_t tmp_buffer;
+	solr_string_t tmp_buffer;
 	zend_string *url_encoded_list = NULL;
 
 	solr_string_appends(buffer, solr_param->param_name, solr_param->param_name_length);
@@ -935,7 +935,7 @@ PHP_SOLR_API void solr_simple_list_param_value_tostring(solr_param_t *solr_param
 	solr_param_value_t *current_ptr = solr_param->head;
 	solr_char_t list_delimiter = solr_param->delimiter; /* Comma 0x2C */
 	zend_ulong n_loops = solr_param->count - 1;
-	auto solr_string_t tmp_buffer;
+	solr_string_t tmp_buffer;
 	zend_string *url_encoded_list = NULL;
 
 	solr_string_appends(buffer, solr_param->param_name, solr_param->param_name_length);
diff --git a/src/solr_string.c b/src/solr_string.c
index ca273876..37d7af09 100644
--- a/src/solr_string.c
+++ b/src/solr_string.c
@@ -52,7 +52,7 @@ php_printf("solr_string_alloc() [Re]allocated %u bytes at %p in %s(), %s Line %d
 /* {{{ PHP_SOLR_API void solr_string_appends(solr_string_t *dest, const solr_char_t *src, size_t length SOLR_MEM_DEBUG_DC) */
 PHP_SOLR_API void solr_string_appends_ex(solr_string_t *dest, const solr_char_t *src, size_t length SOLR_MEM_DEBUG_DC)
 {
-	auto size_t __new_length = 0U;
+	size_t __new_length = 0U;
 
 	/* (Re)allocates memory and increases the capacity if necessary */
 	solr_string_alloc(dest, length, &__new_length SOLR_MEM_DEBUG_CC);
@@ -71,7 +71,7 @@ PHP_SOLR_API void solr_string_appends_ex(solr_string_t *dest, const solr_char_t
 /* {{{ PHP_SOLR_API void solr_string_appendc(solr_string_t *dest, solr_char_t ch SOLR_MEM_DEBUG_DC) */
 PHP_SOLR_API void solr_string_appendc_ex(solr_string_t *dest, solr_char_t ch SOLR_MEM_DEBUG_DC)
 {
-	auto size_t __new_length = 0U;
+	size_t __new_length = 0U;
 
 	/* (Re)allocates memory and increases the capacity if necessary */
 	solr_string_alloc(dest, 1, &__new_length SOLR_MEM_DEBUG_CC);
@@ -101,7 +101,7 @@ PHP_SOLR_API void solr_string_remove_last_char(solr_string_t *dest)
 /* {{{ PHP_SOLR_API void solr_string_append_long(solr_string_t *dest, long int long_val) */
 PHP_SOLR_API void solr_string_append_long_ex(solr_string_t *dest, long int long_val SOLR_MEM_DEBUG_DC)
 {
-	auto size_t __new_length = 0U;
+	size_t __new_length = 0U;
 	auto char tmp_buffer[SOLR_STRING_LONG_BUFFER_SIZE];
 	size_t length = 0;
 
@@ -127,7 +127,7 @@ PHP_SOLR_API void solr_string_append_long_ex(solr_string_t *dest, long int long_
 /* {{{ PHP_SOLR_API void solr_string_append_unsigned_long(solr_string_t *dest, unsigned long int long_val) */
 PHP_SOLR_API void solr_string_append_unsigned_long_ex(solr_string_t *dest, unsigned long int long_val SOLR_MEM_DEBUG_DC)
 {
-	auto size_t __new_length = 0U;
+	size_t __new_length = 0U;
 	auto char tmp_buffer[SOLR_STRING_UNSIGNED_LONG_BUFFER_SIZE];
 	size_t length = 0;