Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcurl: solve deprecations #65

Open
omars44 opened this issue Jan 11, 2024 · 0 comments
Open

libcurl: solve deprecations #65

omars44 opened this issue Jan 11, 2024 · 0 comments
Labels

Comments

@omars44
Copy link
Collaborator

omars44 commented Jan 11, 2024

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);
      | ^~~~~~~~~~~~~
@omars44 omars44 added the bug label Jan 11, 2024
@omars44 omars44 changed the title CURL: solve deprecation warnings libcurl: solve deprecations Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant