php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72721 curl warnings due LTO build
Submitted: 2016-07-31 14:13 UTC Modified: 2020-04-16 10:42 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: spam2 at rhsoft dot net Assigned: nikic (profile)
Status: Closed Package: Compile Warning
PHP Version: 7.0.9 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: spam2 at rhsoft dot net
New email:
PHP Version: OS:

 

 [2016-07-31 14:13 UTC] spam2 at rhsoft dot net
Description:
------------
i guess that should be fixed somehow

/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c: In function '_php_curl_setopt':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c:2817:4: warning: call to '_curl_easy_setopt_err_progress_cb' declared with attribute warning: curl_easy_setopt expects a curl_progress_callback argument for this option
    curl_easy_setopt(ch->cp, CURLOPT_PROGRESSFUNCTION, curl_progress);
    ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c: In function 'zif_curl_getinfo':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c:3204:7: 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
   if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) {
       ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c:3238:9: 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
     if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) {
         ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/sapi/cli/php_cli_server.c: In function 'php_cli_server_dispatch_router.isra.9':
/home/builduser/rpmbuild/BUILD/php-7.0.9/sapi/cli/php_cli_server.c:2044:12: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 static int php_cli_server_dispatch_router(php_cli_server *server, php_cli_server_client *client) /* {{{ */
            ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/sapi/cli/php_cli_server.c: In function 'add_response_header':
/home/builduser/rpmbuild/BUILD/php-7.0.9/sapi/cli/php_cli_server.c:383:13: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 static void add_response_header(sapi_header_struct *h, zval *return_value) /* {{{ */
             ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_execute.c: In function 'zend_verify_internal_arg_class_kind.isra.127':
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_execute.c:608:15: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 static char * zend_verify_internal_arg_class_kind(const zend_internal_arg_info *cur_arg_info, char **class_name, zend_class_entry **pce)
               ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_virtual_cwd.c: In function 'virtual_chdir_file':
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_virtual_cwd.c:1389:13: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path)) /* {{{ */
             ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_virtual_cwd.c: In function 'tsrm_realpath_r':
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_virtual_cwd.c:776:12: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, int use_realpath, int is_dir, int *link_is_dir) /* {{{ */
            ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_API.c: In function 'zend_is_callable_check_class':
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_API.c:2827:12: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 static int zend_is_callable_check_class(zend_string *name, zend_fcall_info_cache *fcc, int *strict_class, char **error) /* {{{ */
            ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_API.c: In function 'zend_is_callable_check_func.isra.1':
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_API.c:2911:12: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fcall_info_cache *fcc, int strict_class, char **error) /* {{{ */
            ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/main/php_variables.c: In function 'php_register_variable_ex':
/home/builduser/rpmbuild/BUILD/php-7.0.9/main/php_variables.c:56:13: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars_array)
             ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_compile.c: In function 'zend_hash_find_ptr_lc':
/home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_compile.c:754:7: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 void *zend_hash_find_ptr_lc(HashTable *ht, const char *str, size_t len) {
       ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/main/main.c: In function 'php_execute_simple_script':
/home/builduser/rpmbuild/BUILD/php-7.0.9/main/main.c:2521:12: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 PHPAPI int php_execute_simple_script(zend_file_handle *primary_file, zval *ret)
            ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/main/main.c: In function 'php_execute_script':
/home/builduser/rpmbuild/BUILD/php-7.0.9/main/main.c:2400:12: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 PHPAPI int php_execute_script(zend_file_handle *primary_file)
            ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/mysqlnd/mysqlnd_auth.c: In function 'mysqlnd_sha256_auth_get_auth_data':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/mysqlnd/mysqlnd_auth.c:568:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self,
 ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/standard/var_unserializer.c: In function 'unserialize_allowed_class':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/standard/var_unserializer.c:213:19: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 static inline int unserialize_allowed_class(zend_string *class_name, HashTable *classes)
                   ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/standard/crypt_sha256.c: In function 'php_sha256_crypt_r':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/standard/crypt_sha256.c:334:8: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int buflen)
        ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/standard/crypt_sha512.c: In function 'php_sha512_crypt_r':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/standard/crypt_sha512.c:369:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) {
 ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/reflection/php_reflection.c: In function 'zim_reflection_extension___construct':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/reflection/php_reflection.c:5541:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
 ZEND_METHOD(reflection_extension, __construct)
 ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c: In function '_php_curl_setopt':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c:2817:4: warning: call to '_curl_easy_setopt_err_progress_cb' declared with attribute warning: curl_easy_setopt expects a curl_progress_callback argument for this option
    curl_easy_setopt(ch->cp, CURLOPT_PROGRESSFUNCTION, curl_progress);
    ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c: In function 'zif_curl_getinfo':
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c:3204:7: 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
   if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) {
       ^
/home/builduser/rpmbuild/BUILD/php-7.0.9/ext/curl/interface.c:3238:9: 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
     if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) {



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-16 10:42 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2020-04-16 10:42 UTC] nikic@php.net
Those curl warnings got fixed at some point, not sure exactly when (maybe 7.4?)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC