Skip to content

Commit

Permalink
Changes to where op_array is stored
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Aug 29, 2015
1 parent bba0818 commit 4cd4a1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xdebug_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,18 @@ static zval* fetch_zval_from_symbol_table(zval *parent, char* name, unsigned int
case XF_ST_ROOT:
/* Check for compiled vars */
element = prepare_search_key(name, &element_length, "", 0);
#if PHP_VERSION_ID >= 70000
if (XG(active_execute_data) && XG(active_execute_data)->func) {
#else
if (XG(active_execute_data) && XG(active_execute_data)->op_array) {
#endif
int i = 0;
ulong hash_value = zend_inline_hash_func(element, element_length + 1);
#if PHP_VERSION_ID >= 70000
zend_op_array *opa = &XG(active_execute_data)->func->op_array;
#else
zend_op_array *opa = XG(active_execute_data)->op_array;
#endif
zval **CV;

while (i < opa->last_var) {
Expand Down

0 comments on commit 4cd4a1b

Please sign in to comment.