diff --git a/xdebug.c b/xdebug.c index 0450d20c6..b36d6835e 100644 --- a/xdebug.c +++ b/xdebug.c @@ -718,13 +718,7 @@ PHP_MINIT_FUNCTION(xdebug) ZEND_INIT_MODULE_GLOBALS(xdebug, php_xdebug_init_globals, php_xdebug_shutdown_globals); REGISTER_INI_ENTRIES(); -#if 0 -#ifdef ZEND_ENGINE_2 -# if PHP_MINOR_VERSION >= 1 - zend_vm_use_old_executor(); -# endif -#endif -#endif + /* initialize aggregate call information hash */ zend_hash_init_ex(&XG(aggr_calls), 50, NULL, (dtor_func_t) xdebug_profile_aggr_call_entry_dtor, 1, 0); diff --git a/xdebug_code_coverage.c b/xdebug_code_coverage.c index 054c02ae4..70ae2b975 100644 --- a/xdebug_code_coverage.c +++ b/xdebug_code_coverage.c @@ -118,11 +118,7 @@ static int xdebug_find_jump(zend_op_array *opa, unsigned int position, long *jmp zend_op opcode = opa->opcodes[position]; if (opcode.opcode == ZEND_JMP) { -#ifdef ZEND_ENGINE_2 *jmp1 = ((long) opcode.op1.u.jmp_addr - (long) base_address) / sizeof(zend_op); -#else - *jmp1 = opcode.op1.u.opline_num; -#endif return 1; } else if ( opcode.opcode == ZEND_JMPZ || @@ -131,11 +127,7 @@ static int xdebug_find_jump(zend_op_array *opa, unsigned int position, long *jmp opcode.opcode == ZEND_JMPNZ_EX ) { *jmp1 = position + 1; -#ifdef ZEND_ENGINE_2 *jmp2 = ((long) opcode.op2.u.jmp_addr - (long) base_address) / sizeof(zend_op); -#else - *jmp2 = opcode.op1.u.opline_num; -#endif return 1; } else if (opcode.opcode == ZEND_JMPZNZ) { *jmp1 = opcode.op2.u.opline_num;