mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Prevent segfault when no execution context set with "b <num>"
This commit is contained in:
parent
7c51efd473
commit
e8aab62d4d
1 changed files with 5 additions and 1 deletions
|
@ -775,7 +775,11 @@ PHPDBG_COMMAND(break) /* {{{ */
|
|||
phpdbg_set_breakpoint_opline(param->addr TSRMLS_CC);
|
||||
break;
|
||||
case NUMERIC_PARAM:
|
||||
if (PHPDBG_G(exec)) {
|
||||
phpdbg_set_breakpoint_file(phpdbg_current_file(TSRMLS_C), param->num TSRMLS_CC);
|
||||
} else {
|
||||
phpdbg_error("Execution context not set !");
|
||||
}
|
||||
break;
|
||||
case METHOD_PARAM:
|
||||
phpdbg_set_breakpoint_method(param->method.class, param->method.name TSRMLS_CC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue