|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp-trunk-zend (last revision 2011-05-12 07:58 UTC by chantry dot xavier at gmail dot com)php-5.3-zend.diff (last revision 2011-05-12 07:08 UTC by chantry dot xavier at gmail dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-11 23:30 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2011-05-11 23:30 UTC] johannes@php.net
[2011-05-12 00:22 UTC] felipe@php.net
[2011-05-12 10:04 UTC] chantry dot xavier at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 17:00:01 2025 UTC |
Description: ------------ All zend API functions should use const char * for strings. Trying to build a C program using Zend with clang results in hundreds of warnings such as these : foo.c:4975:5: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers PARSE_PARAMETERS("rrlszz", &zbody, &zurl, &nb_fields, &line, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foo.c:4975:22: note: instantiated from: PARSE_PARAMETERS("rrlszz", &zbody, &zurl, &nb_fields, &line, ^~~~~~~~ /usr/include/php5/Zend/zend_API.h:238:66: note: passing argument to parameter 'type_spec' here ZEND_API int zend_parse_parameters(int num_args TSRMLS_DC, char *type_spec, ...); ^