/usr/local/php/下是5.6
/usr/src/php-7.0.2/是7.0
## 操作步骤
/usr/src/php-7.0.2/scripts/phpize
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
./configure --with-php-config=/usr/src/php-7.0.2/scripts/php-config
...
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
make
...
:*** [xhprof.lo] Error 1
make详细记录
/bin/sh /root/xhprof/extension/libtool --mode=compile cc -I. -I/root/xhprof/extension -DPHP_ATOM_INC -I/root/xhprof/extension/include -I/root/xhprof/extension/main -I/root/xhprof/extension -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xhprof/extension/xhprof.c -o xhprof.lo
mkdir .libs
cc -I. -I/root/xhprof/extension -DPHP_ATOM_INC -I/root/xhprof/extension/include -I/root/xhprof/extension/main -I/root/xhprof/extension -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xhprof/extension/xhprof.c -fPIC -DPIC -o .libs/xhprof.o
/root/xhprof/extension/xhprof.c: In function ‘zm_startup_xhprof’:
/root/xhprof/extension/xhprof.c:257:28: warning: assignment from incompatible pointer type [enabled by default]
_zend_execute_internal = zend_execute_internal;
^
/root/xhprof/extension/xhprof.c:258:27: warning: assignment from incompatible pointer type [enabled by default]
zend_execute_internal = hp_execute_internal;
^
/root/xhprof/extension/xhprof.c: In function ‘zm_shutdown_xhprof’:
/root/xhprof/extension/xhprof.c:277:27: warning: assignment from incompatible pointer type [enabled by default]
zend_execute_internal = _zend_execute_internal;
^
/root/xhprof/extension/xhprof.c: In function ‘hp_init_profiler_state’:
/root/xhprof/extension/xhprof.c:451:42: error: ‘IS_UNDEF’ undeclared (first use in this function)
if (Z_TYPE(XHPROF_G(stats_count)) != IS_UNDEF) {
^
/root/xhprof/extension/xhprof.c:451:42: note: each undeclared identifier is reported only once for each function it appears in
/root/xhprof/extension/xhprof.c:452:9: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
zval_ptr_dtor(&XHPROF_G(stats_count));
^
In file included from /usr/local/php/include/php/Zend/zend.h:850:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_variables.h:51:15: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_clean_profiler_state’:
/root/xhprof/extension/xhprof.c:474:42: error: ‘IS_UNDEF’ undeclared (first use in this function)
if (Z_TYPE(XHPROF_G(stats_count)) != IS_UNDEF) {
^
/root/xhprof/extension/xhprof.c:475:9: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
zval_ptr_dtor(&XHPROF_G(stats_count));
^
In file included from /usr/local/php/include/php/Zend/zend.h:850:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_variables.h:51:15: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_get_function_name’:
/root/xhprof/extension/xhprof.c:631:5: error: unknown type name ‘zend_string’
zend_string *func = NULL;
^
/root/xhprof/extension/xhprof.c:638:29: error: ‘zend_execute_data’ has no member named ‘func’
curr_func = execute_data->func;
^
/root/xhprof/extension/xhprof.c:640:10: warning: assignment from incompatible pointer type [enabled by default]
func = curr_func->common.function_name;
^
/root/xhprof/extension/xhprof.c:648:44: error: request for member ‘val’ in something not a structure or union
cls = curr_func->common.scope->name->val;
^
/root/xhprof/extension/xhprof.c:649:51: error: request for member ‘val’ in something not a structure or union
spprintf(&ret, 0, "%s%s%s", cls, sep, func->val);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_inc_count’:
/root/xhprof/extension/xhprof.c:737:10: warning: assignment makes pointer from integer without a cast [enabled by default]
data = zend_hash_str_find(ht, name, strlen(name));
^
/root/xhprof/extension/xhprof.c: In function ‘hp_sample_stack’:
/root/xhprof/extension/xhprof.c:790:57: error: macro "add_assoc_string" requires 4 arguments, but only 3 given
add_assoc_string(&XHPROF_G(stats_count), key, symbol);
^
/root/xhprof/extension/xhprof.c:790:5: error: ‘add_assoc_string’ undeclared (first use in this function)
add_assoc_string(&XHPROF_G(stats_count), key, symbol);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_mode_hier_endfn_cb’:
/root/xhprof/extension/xhprof.c:1027:12: warning: assignment makes pointer from integer without a cast [enabled by default]
counts = zend_hash_str_find(Z_ARRVAL(XHPROF_G(stats_count)), symbol, strlen(symbol));
^
/root/xhprof/extension/xhprof.c:1032:16: warning: assignment makes pointer from integer without a cast [enabled by default]
counts = zend_hash_str_update(Z_ARRVAL(XHPROF_G(stats_count)), symbol, strlen(symbol), &count_val);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_execute_internal’:
/root/xhprof/extension/xhprof.c:1125:9: warning: passing argument 2 of ‘execute_internal’ from incompatible pointer type [enabled by default]
execute_internal(execute_data, return_value);
^
In file included from /usr/local/php/include/php/Zend/zend_API.h:30:0,
from /usr/local/php/include/php/main/php.h:39,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_execute.h:62:15: note: expected ‘struct _zend_fcall_info *’ but argument is of type ‘struct zval *’
ZEND_API void execute_internal(zend_execute_data *execute_data_ptr, struct _zend_fcall_info *fci, int return_value_used TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1125:9: error: too few arguments to function ‘execute_internal’
execute_internal(execute_data, return_value);
^
In file included from /usr/local/php/include/php/Zend/zend_API.h:30:0,
from /usr/local/php/include/php/main/php.h:39,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_execute.h:62:15: note: declared here
ZEND_API void execute_internal(zend_execute_data *execute_data_ptr, struct _zend_fcall_info *fci, int return_value_used TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1140:9: warning: passing argument 2 of ‘execute_internal’ from incompatible pointer type [enabled by default]
execute_internal(execute_data, return_value);
^
In file included from /usr/local/php/include/php/Zend/zend_API.h:30:0,
from /usr/local/php/include/php/main/php.h:39,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_execute.h:62:15: note: expected ‘struct _zend_fcall_info *’ but argument is of type ‘struct zval *’
ZEND_API void execute_internal(zend_execute_data *execute_data_ptr, struct _zend_fcall_info *fci, int return_value_used TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1140:9: error: too few arguments to function ‘execute_internal’
execute_internal(execute_data, return_value);
^
In file included from /usr/local/php/include/php/Zend/zend_API.h:30:0,
from /usr/local/php/include/php/main/php.h:39,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_execute.h:62:15: note: declared here
ZEND_API void execute_internal(zend_execute_data *execute_data_ptr, struct _zend_fcall_info *fci, int return_value_used TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_zval_at_key’:
/root/xhprof/extension/xhprof.c:1329:16: warning: assignment makes pointer from integer without a cast [enabled by default]
result = zend_hash_str_find(Z_ARRVAL_P(values), key, len);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_strings_in_zval’:
/root/xhprof/extension/xhprof.c:1354:9: error: unknown type name ‘zend_string’
zend_string *key;
^
/root/xhprof/extension/xhprof.c:1364:58: error: expected ‘;’ before ‘{’ token
ZEND_HASH_FOREACH_KEY_VAL(ht, num_key, key, val) {
^
/root/xhprof/extension/xhprof.c: At top level:
/root/xhprof/extension/xhprof.c:1405:1: error: unknown type name ‘zend_string’
zend_string *hp_pcre_match(char *pattern, int len, zval *data, zend_ulong idx)
^
/root/xhprof/extension/xhprof.c: In function ‘hp_pcre_match’:
/root/xhprof/extension/xhprof.c:1410:5: error: unknown type name ‘zend_string’
zend_string *pattern_str, *result = NULL;
^
/root/xhprof/extension/xhprof.c:1412:17: warning: assignment makes pointer from integer without a cast [enabled by default]
pattern_str = zend_string_init(pattern, len, 0);
^
/root/xhprof/extension/xhprof.c:1413:5: warning: passing argument 1 of ‘pcre_get_compiled_regex_cache’ from incompatible pointer type [enabled by default]
if ((pce_regexp = pcre_get_compiled_regex_cache(pattern_str)) == NULL) {
^
In file included from /root/xhprof/extension/xhprof.c:33:0:
/usr/local/php/include/php/ext/pcre/php_pcre.h:55:26: note: expected ‘char *’ but argument is of type ‘int *’
PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1413:5: error: too few arguments to function ‘pcre_get_compiled_regex_cache’
if ((pce_regexp = pcre_get_compiled_regex_cache(pattern_str)) == NULL) {
^
In file included from /root/xhprof/extension/xhprof.c:33:0:
/usr/local/php/include/php/ext/pcre/php_pcre.h:55:26: note: declared here
PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1425:9: error: too few arguments to function ‘zend_hash_index_find’
match = zend_hash_index_find(Z_ARRVAL_P(subparts), idx);
^
In file included from /usr/local/php/include/php/Zend/zend.h:286:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_hash.h:166:14: note: declared here
ZEND_API int zend_hash_index_find(const HashTable *ht, ulong h, void **pData);
^
/root/xhprof/extension/xhprof.c:1428:20: warning: assignment makes pointer from integer without a cast [enabled by default]
result = zend_string_init(Z_STRVAL_P(match), Z_STRLEN_P(match), 0);
^
/root/xhprof/extension/xhprof.c:1433:5: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
zval_ptr_dtor(&matches);
^
In file included from /usr/local/php/include/php/Zend/zend.h:850:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_variables.h:51:15: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
^
/root/xhprof/extension/xhprof.c:1434:5: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
zval_ptr_dtor(subparts);
^
In file included from /usr/local/php/include/php/Zend/zend.h:850:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_variables.h:51:15: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
^
/root/xhprof/extension/xhprof.c: At top level:
/root/xhprof/extension/xhprof.c:1439:1: error: unknown type name ‘zend_string’
zend_string *hp_pcre_replace(char *pattern, int len, zval *repl, zval *data, int limit)
^
/root/xhprof/extension/xhprof.c: In function ‘hp_pcre_replace’:
/root/xhprof/extension/xhprof.c:1442:5: error: unknown type name ‘zend_string’
zend_string *pattern_str, *replace;
^
/root/xhprof/extension/xhprof.c:1444:17: warning: assignment makes pointer from integer without a cast [enabled by default]
pattern_str = zend_string_init(pattern, len, 0);
^
/root/xhprof/extension/xhprof.c:1446:5: warning: passing argument 1 of ‘pcre_get_compiled_regex_cache’ from incompatible pointer type [enabled by default]
if ((pce_regexp = pcre_get_compiled_regex_cache(pattern_str)) == NULL) {
^
In file included from /root/xhprof/extension/xhprof.c:33:0:
/usr/local/php/include/php/ext/pcre/php_pcre.h:55:26: note: expected ‘char *’ but argument is of type ‘int *’
PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1446:5: error: too few arguments to function ‘pcre_get_compiled_regex_cache’
if ((pce_regexp = pcre_get_compiled_regex_cache(pattern_str)) == NULL) {
^
In file included from /root/xhprof/extension/xhprof.c:33:0:
/usr/local/php/include/php/ext/pcre/php_pcre.h:55:26: note: declared here
PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1457:5: warning: passing argument 3 of ‘php_pcre_replace_impl’ makes integer from pointer without a cast [enabled by default]
replace = php_pcre_replace_impl(pce_regexp, NULL, Z_STRVAL_P(repl), Z_STRLEN_P(repl), data, 0, limit, 0);
^
In file included from /root/xhprof/extension/xhprof.c:33:0:
/usr/local/php/include/php/ext/pcre/php_pcre.h:60:14: note: expected ‘int’ but argument is of type ‘char *’
PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value,
^
/root/xhprof/extension/xhprof.c:1457:5: warning: passing argument 4 of ‘php_pcre_replace_impl’ makes pointer from integer without a cast [enabled by default]
replace = php_pcre_replace_impl(pce_regexp, NULL, Z_STRVAL_P(repl), Z_STRLEN_P(repl), data, 0, limit, 0);
^
In file included from /root/xhprof/extension/xhprof.c:33:0:
/usr/local/php/include/php/ext/pcre/php_pcre.h:60:14: note: expected ‘struct zval *’ but argument is of type ‘int’
PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value,
^
/root/xhprof/extension/xhprof.c:1457:5: warning: passing argument 5 of ‘php_pcre_replace_impl’ makes integer from pointer without a cast [enabled by default]
replace = php_pcre_replace_impl(pce_regexp, NULL, Z_STRVAL_P(repl), Z_STRLEN_P(repl), data, 0, limit, 0);
^
In file included from /root/xhprof/extension/xhprof.c:33:0:
/usr/local/php/include/php/ext/pcre/php_pcre.h:60:14: note: expected ‘int’ but argument is of type ‘struct zval *’
PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value,
^
/root/xhprof/extension/xhprof.c:1457:13: warning: assignment from incompatible pointer type [enabled by default]
replace = php_pcre_replace_impl(pce_regexp, NULL, Z_STRVAL_P(repl), Z_STRLEN_P(repl), data, 0, limit, 0);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_trace_callback_sql_query’:
/root/xhprof/extension/xhprof.c:1474:21: warning: initialization makes pointer from integer without a cast [enabled by default]
zval *arg = ZEND_CALL_ARG(data, 2);
^
/root/xhprof/extension/xhprof.c:1477:21: warning: initialization makes pointer from integer without a cast [enabled by default]
zval *arg = ZEND_CALL_ARG(data, 1);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_trace_callback_pdo_statement_execute’:
/root/xhprof/extension/xhprof.c:1488:25: error: ‘zend_execute_data’ has no member named ‘This’
zval *object = (data->This.value.obj) ? &(data->This) : NULL;
^
/root/xhprof/extension/xhprof.c:1488:51: error: ‘zend_execute_data’ has no member named ‘This’
zval *object = (data->This.value.obj) ? &(data->This) : NULL;
^
/root/xhprof/extension/xhprof.c:1492:9: error: too many arguments to function ‘zend_read_property’
query_string = zend_read_property(pdo_ce, object, ZEND_STRL("queryString"), 0, NULL);
^
In file included from /usr/local/php/include/php/main/php.h:39:0,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_API.h:343:16: note: declared here
ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_bool silent TSRMLS_DC);
^
/root/xhprof/extension/xhprof.c:1509:13: warning: assignment makes pointer from integer without a cast [enabled by default]
arg = ZEND_CALL_ARG(data, 1);
^
/root/xhprof/extension/xhprof.c:1515:9: error: unknown type name ‘zend_string’
zend_string *pattern_str = NULL;
^
/root/xhprof/extension/xhprof.c:1520:25: warning: assignment makes pointer from integer without a cast [enabled by default]
pattern_str = zend_string_init("([\?])", sizeof("([\?])") - 1, 0);
^
/root/xhprof/extension/xhprof.c:1522:25: warning: assignment makes pointer from integer without a cast [enabled by default]
pattern_str = zend_string_init("(:([^\\s]+))", sizeof("(:([^\\s]+))") - 1, 0);
^
/root/xhprof/extension/xhprof.c:1526:13: error: unknown type name ‘zend_string’
zend_string *match;
^
/root/xhprof/extension/xhprof.c:1527:13: warning: passing argument 1 of ‘hp_pcre_match’ makes pointer from integer without a cast [enabled by default]
if ((match = hp_pcre_match(ZSTR_VAL(pattern_str), ZSTR_LEN(pattern_str), ©_query, 0))) {
^
/root/xhprof/extension/xhprof.c:1405:14: note: expected ‘char *’ but argument is of type ‘int’
zend_string *hp_pcre_match(char *pattern, int len, zval *data, zend_ulong idx)
^
/root/xhprof/extension/xhprof.c:1529:17: error: unknown type name ‘zend_string’
zend_string *key;
^
/root/xhprof/extension/xhprof.c:1531:17: error: unknown type name ‘zend_string’
zend_string *replace;
^
/root/xhprof/extension/xhprof.c:1534:17: error: expected ‘;’ before ‘{’ token
{
^
/root/xhprof/extension/xhprof.c:1555:9: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
zval_ptr_dtor(©_query);
^
In file included from /usr/local/php/include/php/Zend/zend.h:850:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_variables.h:51:15: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_trace_callback_curl_exec’:
/root/xhprof/extension/xhprof.c:1568:17: warning: initialization makes pointer from integer without a cast [enabled by default]
zval *arg = ZEND_CALL_ARG(data, 1);
^
/root/xhprof/extension/xhprof.c:1576:38: error: macro "ZVAL_STRING" requires 3 arguments, but only 2 given
ZVAL_STRING(&func, "curl_getinfo");
^
/root/xhprof/extension/xhprof.c:1576:5: error: ‘ZVAL_STRING’ undeclared (first use in this function)
ZVAL_STRING(&func, "curl_getinfo");
^
/root/xhprof/extension/xhprof.c:1583:13: error: incompatible types when initializing type ‘struct zval *’ using type ‘zval’
function_name: func,
^
/root/xhprof/extension/xhprof.c:1587:13: error: unknown field ‘retval’ specified in initializer
retval: &retval,
^
/root/xhprof/extension/xhprof.c:1587:13: warning: initialization from incompatible pointer type [enabled by default]
/root/xhprof/extension/xhprof.c:1587:13: warning: (near initialization for ‘fci.retval_ptr_ptr’) [enabled by default]
/root/xhprof/extension/xhprof.c:1588:13: warning: initialization from incompatible pointer type [enabled by default]
params: ¶ms,
^
/root/xhprof/extension/xhprof.c:1588:13: warning: (near initialization for ‘fci.params’) [enabled by default]
/root/xhprof/extension/xhprof.c:1589:13: error: unknown field ‘object’ specified in initializer
object: NULL,
^
/root/xhprof/extension/xhprof.c:1597:16: warning: assignment makes pointer from integer without a cast [enabled by default]
option = zend_hash_str_find(Z_ARRVAL(retval), ZEND_STRL("url"));
^
/root/xhprof/extension/xhprof.c:1601:5: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
zval_ptr_dtor(&func);
^
In file included from /usr/local/php/include/php/Zend/zend.h:850:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_variables.h:51:15: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
^
/root/xhprof/extension/xhprof.c:1602:5: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [enabled by default]
zval_ptr_dtor(&retval);
^
In file included from /usr/local/php/include/php/Zend/zend.h:850:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_variables.h:51:15: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_get_trace_callback’:
/root/xhprof/extension/xhprof.c:1612:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
callback = (hp_trace_callback*)zend_hash_str_find_ptr(XHPROF_G(trace_callbacks), symbol, strlen(symbol));
^
/root/xhprof/extension/xhprof.c: In function ‘hp_free_trace_callbacks’:
/root/xhprof/extension/xhprof.c:1625:5: warning: passing argument 1 of ‘_efree’ makes pointer from integer without a cast [enabled by default]
efree(Z_PTR_P(val));
^
In file included from /usr/local/php/include/php/Zend/zend.h:252:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_alloc.h:61:15: note: expected ‘void *’ but argument is of type ‘int’
ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
^
/root/xhprof/extension/xhprof.c: In function ‘hp_init_trace_callbacks’:
/root/xhprof/extension/xhprof.c:1643:5: warning: passing argument 3 of ‘_zend_hash_init’ from incompatible pointer type [enabled by default]
zend_hash_init(XHPROF_G(trace_callbacks), 8, NULL, hp_free_trace_callbacks, 0);
^
In file included from /usr/local/php/include/php/Zend/zend.h:286:0,
from /usr/local/php/include/php/main/php.h:35,
from /root/xhprof/extension/xhprof.c:22:
/usr/local/php/include/php/Zend/zend_hash.h:100:14: note: expected ‘dtor_func_t’ but argument is of type ‘void (*)(struct zval *)’
ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);