Skip to content

Xhprof build failed with php 7.1 #89

@haridarshan

Description

@haridarshan

Hi,
I'm having php 7.1.0 installed via src and am trying to install xhprof extension from RustJason php7 branch but unable to build it. While running make command am getting this error

/opt/xhprof/xhprof/extension/xhprof.c:1470:20: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘called_scope’
   if (execute_data ->called_scope != NULL && func != NULL) {
                    ^~
/opt/xhprof/xhprof/extension/xhprof.c:1472:40: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘called_scope’
  zend_string *class_name = execute_data->called_scope->name;
                                        ^~
Makefile:193: recipe for target 'xhprof.lo' failed
make: *** [xhprof.lo] Error 1 

On further investing I found that with php 7.0 in structure _zend_execute_data have zend_class_entry * called_scope which is not present in php 7.1. So is there any way to build xhprof with php 7.1.

One solution is downgrade php 7.1 to 7.0 which is not possible.

So, please help me out in this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions