summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2014-04-21 22:00:21 +0100
committerkrakjoe <joe.watkins@live.co.uk>2014-04-21 22:00:21 +0100
commitc1e12316f1126ae3b3867a38d6930cf66cfb0675 (patch)
tree170b48c04c0a2a0d222caca32f9eedb2c62e3845 /phpdbg_prompt.c
parente9668d4ce8512838d92b05aa47da02c85a37c486 (diff)
downloadphp-git-c1e12316f1126ae3b3867a38d6930cf66cfb0675.tar.gz
fixup help, behaviour of step command when not executing
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r--phpdbg_prompt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 2e07c32174..e2603a00ed 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -424,7 +424,9 @@ int phpdbg_compile(TSRMLS_D) /* {{{ */
PHPDBG_COMMAND(step) /* {{{ */
{
- PHPDBG_G(flags) |= PHPDBG_IS_STEPPING;
+ if (EG(in_execution)) {
+ PHPDBG_G(flags) |= PHPDBG_IS_STEPPING;
+ }
return PHPDBG_NEXT;
} /* }}} */