php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59315 ?_curl_easy_getinfo_err_string? declared with attribute warning
Submitted: 2010-07-18 01:27 UTC Modified: 2011-03-24 04:59 UTC
From: snover@php.net Assigned: mike (profile)
Status: Not a bug Package: pecl_http (PECL)
PHP Version: 5.3.2 OS: 64-bit GNU/Linux
Private report: No CVE-ID: None
 [2010-07-18 01:27 UTC] snover@php.net
Description:
------------
When compiling with libcurl4-openssl-dev 7.19.7-1ubuntu1:

Warning during compilation: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info

Reproduce code:
---------------
make

Expected result:
----------------
No warnings about incorrect declaration.

Actual result:
--------------
In file included from /tmp/pear/temp/pecl_http/http_request_pool_api.c:24:
In function ?http_request_storage_get?,
    inlined from ?_http_request_pool_responsehandler? at /tmp/pear/temp/pecl_http/http_request_pool_api.c:404:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info

/tmp/pear/temp/pecl_http/http_request_api.c: In function ?http_curl_progress_callback?:
/tmp/pear/temp/pecl_http/http_request_api.c:1172: warning: ?php_set_error_handling? is deprecated (declared at /usr/include/php5/main/php.h:295)
/tmp/pear/temp/pecl_http/http_request_api.c:1176: warning: ?php_set_error_handling? is deprecated (declared at /usr/include/php5/main/php.h:295)
/tmp/pear/temp/pecl_http/http_request_api.c: In function ?_http_request_defaults?:
/tmp/pear/temp/pecl_http/http_request_api.c:565: warning: call to ?_curl_easy_setopt_err_long? declared with attribute warning: curl_easy_setopt expects a long argument for this option
/tmp/pear/temp/pecl_http/http_request_api.c: In function ?_http_curl_init_ex?:
/tmp/pear/temp/pecl_http/http_request_api.c:263: warning: call to ?_curl_easy_setopt_err_write_callback? declared with attribute warning: curl_easy_setopt expects a curl_write_callback argument for this option
In file included from /tmp/pear/temp/pecl_http/http_request_api.c:23:
In function ?http_request_storage_get?,
    inlined from ?_http_request_cookies_enabled? at /tmp/pear/temp/pecl_http/http_request_api.c:1305,
    inlined from ?_http_request_flush_cookies? at /tmp/pear/temp/pecl_http/http_request_api.c:453:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info
In function ?http_request_storage_get?,
    inlined from ?_http_request_exec? at /tmp/pear/temp/pecl_http/http_request_api.c:1093:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info
In function ?http_request_storage_get?,
    inlined from ?safe_curl_dtor? at /tmp/pear/temp/pecl_http/http_request_api.c:116:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info
In function ?http_request_storage_get?,
    inlined from ?_http_request_reset? at /tmp/pear/temp/pecl_http/http_request_api.c:379:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info
In function ?http_request_storage_get?,
    inlined from ?_http_request_cookies_enabled? at /tmp/pear/temp/pecl_http/http_request_api.c:1305,
    inlined from ?_http_request_enable_cookies? at /tmp/pear/temp/pecl_http/http_request_api.c:403:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info
In function ?http_request_storage_get?,
    inlined from ?_http_request_cookies_enabled? at /tmp/pear/temp/pecl_http/http_request_api.c:1305,
    inlined from ?_http_request_reset_cookies? at /tmp/pear/temp/pecl_http/http_request_api.c:419:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info
In function ?http_request_storage_get?,
    inlined from ?_http_request_prepare? at /tmp/pear/temp/pecl_http/http_request_api.c:619:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info

/tmp/pear/temp/pecl_http/http_request_info.c: In function ?_http_request_info?:
/tmp/pear/temp/pecl_http/http_request_info.c:159: warning: call to ?_curl_easy_getinfo_err_curl_slist? declared with attribute warning: curl_easy_getinfo expects a pointer to struct curl_slist * for this info
In file included from /tmp/pear/temp/pecl_http/http_request_info.c:19:
In function ?http_request_storage_get?,
    inlined from ?_http_request_info? at /tmp/pear/temp/pecl_http/http_request_info.c:185:
/tmp/pear/temp/pecl_http/php_http_request_api.h:81: warning: call to ?_curl_easy_getinfo_err_string? declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-24 04:59 UTC] mike@php.net
Thank you for taking the time to write to us, but this is not
a bug.

A compile warning ist not a bug.  I usually try to avoid 
warnings, of course, but this one is not worth the effort.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC