xhprof 在5.6+版本的php中报错
来源:互联网 发布:windows按键双系统切换 编辑:程序博客网 时间:2024/06/06 04:02
xhprof 在5.6+版本的php中使用会报错,原因是因为array_pop函数处理没有兼容新版本,只需要修改xhprof.c源码中的
#if ZEND_EXTENSION_API_NO >= 220121212 /* PHP 5.5. This is just inlining a copy of execute_internal(). */ if (fci != NULL) { ((zend_internal_function *) execute_data->function_state.function)->handler( fci->param_count, *fci->retval_ptr_ptr, fci->retval_ptr_ptr, fci->object_ptr, 1 TSRMLS_CC); } else { zval **return_value_ptr = &EX_TMP_VAR(execute_data, execute_data->opline->result.var)->var.ptr; ((zend_internal_function *) execute_data->function_state.function)->handler( execute_data->opline->extended_value, *return_value_ptr, (execute_data->function_state.function->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) ? return_value_ptr : NULL, execute_data->object, ret TSRMLS_CC); }#elif ZEND_EXTENSION_API_NO >= 220100525
改成下面这样
#if ZEND_EXTENSION_API_NO >= 220121212 /* PHP 5.5. This is just inlining a copy of execute_internal(). */ if (fci != NULL) { ((zend_internal_function *) execute_data->function_state.function)->handler( fci->param_count, *fci->retval_ptr_ptr, fci->retval_ptr_ptr, fci->object_ptr, 1 TSRMLS_CC); } else { zval **return_value_ptr = &EX_TMP_VAR(current_data, current_data->opline->result.var)->var.ptr; current_data->function_state.function->internal_function.handler( current_data->opline->extended_value + current_data->call->num_additional_args, *return_value_ptr, return_value_ptr, current_data->object, ret TSRMLS_CC ); }
就可以了转载自:https://github.com/phacility/xhprof/issues/63
0 0
- xhprof 在5.6+版本的php中报错
- Laravel下使用 xhprof php版本5.6
- 部署xhprof监控php效率(linux版本)
- php xhprof 扩展的使用
- xhprof在windows下面的安装和使用[上](windows版本)
- 基于在生产环境中使用php性能测试工具xhprof的详解
- windows下安装php性能分析工具XHProf(windows版本)
- XHProf-php轻量级的性能分析工具
- 使用 XHProf 分析你的 PHP 程序
- 使用 XHProf 分析你的 PHP 程序
- XHProf-php轻量级的性能分析工具
- xhprof在windows上的安装
- 在生产环境中使用php性能测试工具xhprof
- 在生产环境中使用php性能测试工具xhprof
- 在生产环境中使用 php 性能测试工具 xhprof
- 在生产环境中使用 php 性能测试工具 xhprof
- 在生产环境中使用php性能测试工具xhprof
- 体验XHProf(linux版本)
- POJ 3614 Pseudoprime numbers(快速幂)
- IOS开发UI-------UIView(视图)
- GridView布局
- #ifndef的介绍
- Git备忘
- xhprof 在5.6+版本的php中报错
- ImageLoader加载图片
- VBA 通过timer计时
- JavaSE入门学习1:计算机基础知识
- 算法与数据结构学习资源大搜罗——良心推荐
- PHP八大安全函数解析
- LD-LINUX.SO.2: BAD ELF INTERPRETER的解决办法【阿里云】
- Block块/Swift闭包介绍与使用
- Android开发-前端视图Activity