|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-05-21 07:19 UTC] waton dot kelakon at gmail dot com
Description:
------------
Compile on windows 7 using Visual Studio 2012 failed.
Error message:
..\pecl\rrd-1.1.3\rrd.c(669) : error C2440: '=' : cannot convert from 'void *' to 'char *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Code:
663 zval **item;
664 smart_str option = {0}; /* one argument option */
665
666 /* force using strings as array items */
667 zend_hash_get_current_data(Z_ARRVAL_P(options), (void**) &item);
668 if (Z_TYPE_PP(item) != IS_STRING) convert_to_string(*item);
669 smart_str_appendl(&option, Z_STRVAL_PP(item), Z_STRLEN_PP(item));
670 smart_str_0(&option);
Expected result:
----------------
Compiled OK
Actual result:
--------------
Compile failed
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Oh no, I'am a novice :-) This is my config.w32 : ARG_WITH("rrd", "RRDTool support", "no"); if (PHP_RRD != "no") { if (CHECK_LIB("librrd-4_a.lib;librrd-4.lib", "rrd", PHP_RRD) && CHECK_HEADER_ADD_INCLUDE("rrd.h", "CFLAGS_RRD")) { EXTENSION ("rrd", "rrd.c rrd_graph.c rrd_create.c rrd_update.c rrd_info.c"); AC_DEFINE('HAVE_RRD', 1, 'Have RRDTool library'); ADD_FLAG('CFLAGS_RRD', '/TP'); } else { WARNING("RRDTool could not enabled; libraries and headers not found"); } } Thank you.