Bug #72721 [NEW]: curl warnings due LTO build
| From: | spam2 at rhsoft dot net | Date: | Sun, 31 Jul 2016 14:13:14 +0000 |
| Subject: | Bug #72721 [NEW]: curl warnings due LTO build | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-202777@lists.php.net to get a copy of this message | ||
From: spam2 at rhsoft dot net
Operating system:
PHP version: 7.0.9
Package: Compile Warning
Bug Type: Bug
Bug description:curl warnings due LTO build
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)
{
--
Edit bug report at https://bugs.php.net/bug.php?id=72721&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72721&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72721&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72721&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72721&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72721&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72721&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72721&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72721&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72721&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72721&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72721&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72721&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72721&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72721&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72721&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72721&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72721&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72721&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72721&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72721&r=mysqlcfg