Skip to content

Commit

Permalink
PHP 5.4 stores constant values differently
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jan 14, 2015
1 parent 414f21c commit 6522585
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions xdebug_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ zval *xdebug_zval_ptr(int op_type, XDEBUG_ZNODE *node, zend_execute_data *zdata

switch (op_type & 0x0F) {
case IS_CONST:
#if PHP_VERSION_ID >= 50399
return node->zv;
#else
return &node->u.constant;
#endif
break;
case IS_TMP_VAR:
return &T(XDEBUG_ZNODEP_ELEM(node, var)).tmp_var;
Expand Down

0 comments on commit 6522585

Please sign in to comment.