Closed phpng closed 6 years ago
@phpng I can't reproduce it here. Can you provide php -v?
我用的是php7.0.正常使用的
@longxinH
PHP 7.1.10 (cli) (built: Oct 11 2017 15:44:45) ( ZTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
Sys:
CentOS Linux release 7.2.1511 (Core)
另外在make阶段有好多的额警告:
/usr/local/src/xhprof-2.0.0/extension/xhprof.c: 在函数‘hp_get_entry_name’中:
/usr/local/src/xhprof-2.0.0/extension/xhprof.c:518:5: 警告:返回时将指针赋给整数,未作类型转换 [默认启用]
return result_buf;
^
/usr/local/src/xhprof-2.0.0/extension/xhprof.c: 在函数‘hp_get_function_stack’中:
/usr/local/src/xhprof-2.0.0/extension/xhprof.c:569:9: 警告:返回时将整数赋给指针,未作类型转换 [默认启用]
return hp_get_entry_name(entry);
^
/usr/local/src/xhprof-2.0.0/extension/xhprof.c:583:17: 警告:赋值时将整数赋给指针,未作类型转换 [默认启用]
curr_result = hp_get_entry_name(entry);
^
/usr/local/src/xhprof-2.0.0/extension/xhprof.c: 在函数‘hp_trace_callback_curl_exec’中:
/usr/local/src/xhprof-2.0.0/extension/xhprof.c:1604:13: 警告:从不兼容的指针类型初始化 [默认启用]
params: ¶ms,
^
/usr/local/src/xhprof-2.0.0/extension/xhprof.c:1604:13: 警告:(在‘fci.params’的初始化附近) [默认启用]
/usr/local/src/xhprof-2.0.0/extension/xhprof.c: 在函数‘hp_init_trace_callbacks’中:
/usr/local/src/xhprof-2.0.0/extension/xhprof.c:1654:5: 警告:传递‘_zend_hash_str_update’的第 4 个参数时在不兼容的指针类型间转换 [默认启用]
register_trace_callback("PDO::exec", callback);
@phpng 出现段错误是因为ZTS模式的问题,make过程中的警告可以忽略,已经修复了试下v2.0.1版本。谢谢反馈
@longxinH 新版本没问题
php: 7.1.10