1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 04:32:19 +02:00

fix breakpoint in userland

This commit is contained in:
krakjoe
2013-11-11 14:55:36 +00:00
parent 97fda0eaf2
commit e8c98020ef

View File

@@ -96,9 +96,11 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
static PHP_FUNCTION(phpdbg_break) /* {{{ */
{
if (EG(current_execute_data)) {
if (EG(current_execute_data) && EG(active_op_array)) {
zend_ulong opline_num = EG(current_execute_data)->opline - EG(active_op_array)->opcodes;
phpdbg_set_breakpoint_opline_ex(
EG(current_execute_data)->opline TSRMLS_CC);
&EG(active_op_array)->opcodes[opline_num+1] TSRMLS_CC);
}
} /* }}} */