Skip to content

Commit

Permalink
- Get rid of two < PHP 5.1 thingies.
Browse files Browse the repository at this point in the history
SVN Rev: 3189
  • Loading branch information
derickr committed Jan 1, 2010
1 parent f2b1d9d commit 8029ecc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
8 changes: 1 addition & 7 deletions xdebug.c
Expand Up @@ -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);

Expand Down
8 changes: 0 additions & 8 deletions xdebug_code_coverage.c
Expand Up @@ -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 ||
Expand All @@ -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;
Expand Down

0 comments on commit 8029ecc

Please sign in to comment.