Skip to content

Commit

Permalink
Reset overloaded opcodes at the end of each request
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jun 4, 2015
1 parent 8a4d946 commit c50a75d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,17 @@ PHP_MSHUTDOWN_FUNCTION(xdebug)
#else
php_xdebug_shutdown_globals(&xdebug_globals TSRMLS_CC);
#endif

/* cleanup handlers set in MINIT to xdebug_check_branch_entry_handler */
{
int i;

for (i = 0; i < 256; i++) {
if (zend_get_user_opcode_handler(i) == xdebug_check_branch_entry_handler) {
zend_set_user_opcode_handler(i, NULL);
}
}
}
return SUCCESS;
}

Expand Down

0 comments on commit c50a75d

Please sign in to comment.