mirror of
https://github.com/php/php-src.git
synced 2026-03-31 12:42:29 +02:00
fix stepping
This commit is contained in:
@@ -595,6 +595,12 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
|
||||
if (!EG(in_execution)) {
|
||||
phpdbg_error("Not running");
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
if (cmd) {
|
||||
free(cmd);
|
||||
}
|
||||
#endif
|
||||
return PHPDBG_NEXT;
|
||||
}
|
||||
}
|
||||
@@ -720,16 +726,16 @@ zend_vm_enter:
|
||||
DO_INTERACTIVE();
|
||||
}
|
||||
}
|
||||
|
||||
next:
|
||||
PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC);
|
||||
|
||||
|
||||
if (!(PHPDBG_G(flags) & PHPDBG_IN_COND_BP)) {
|
||||
if ((PHPDBG_G(flags) & PHPDBG_IS_STEPPING)) {
|
||||
DO_INTERACTIVE();
|
||||
}
|
||||
}
|
||||
|
||||
next:
|
||||
PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC);
|
||||
|
||||
if (PHPDBG_G(vmret) > 0) {
|
||||
switch (PHPDBG_G(vmret)) {
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user