php/pecl-search_engine-solr

libcurl: solve deprecations

Opened this issue · 0 comments

present now under the php 8.3-cli docker image, check Dockerfile to reproduce.

/tmp/pear/temp/solr/src/php7/solr_functions_client.c:409:9: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
  409 |         curl_formadd(&formpost, &lastptr,
      |         ^~~~~~~~~~~~
In file included from /tmp/pear/temp/solr/src/php7/solr_types.h:25,
                 from /tmp/pear/temp/solr/src/php7/php_solr.h:82,
                 from /tmp/pear/temp/solr/src/php7/solr_functions_client.c:19:
/usr/local/include/curl/curl.h:2575:1: note: declared here
 2575 | curl_formadd(struct curl_httppost **httppost,
      | ^~~~~~~~~~~~
/tmp/pear/temp/solr/src/php7/solr_functions_client.c:410:17: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
  410 |                 CURLFORM_COPYNAME, "PHPSOLRCLIENT",
      |                 ^~~~~~~~~~~~~~~~~
/usr/local/include/curl/curl.h:2500:3: note: declared here
 2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
      |   ^~~~~~~~~~~~~~~~~
/tmp/pear/temp/solr/src/php7/solr_functions_client.c:411:17: warning: 'CURLFORM_FILE' is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations]
  411 |                 CURLFORM_FILE, (const char *) stream_data->content_info->filename.str,
      |                 ^~~~~~~~~~~~~
/usr/local/include/curl/curl.h:2509:3: note: declared here
 2509 |   CURLFORM_FILE            CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"),
      |   ^~~~~~~~~~~~~
/tmp/pear/temp/solr/src/php7/solr_functions_client.c:414:9: warning: 'CURLOPT_HTTPPOST' is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Wdeprecated-declarations]
  414 |         curl_easy_setopt(sch->curl_handle, CURLOPT_HTTPPOST, formpost);
      |         ^~~~~~~~~~~~~~~~
/usr/local/include/curl/curl.h:1195:3: note: declared here
 1195 |   CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24,
      |   ^~~~~~~~~~~~~~~~~
/tmp/pear/temp/solr/src/php7/solr_functions_client.c:426:9: warning: 'curl_formfree' is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations]
  426 |         curl_formfree(formpost);
      |         ^~~~~~~~~~~~~
/usr/local/include/curl/curl.h:2611:1: note: declared here
 2611 | curl_formfree(struct curl_httppost *form);
      | ^~~~~~~~~~~~~