summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2013-11-25 20:33:52 +0100
committerBob Weinand <bobwei9@hotmail.com>2013-11-25 20:33:52 +0100
commit2be5a1e3da05caee88bc92f2abec223cc999c1f0 (patch)
tree80ef72becc6d224f3334c3e08182351e77e24d1a /phpdbg_prompt.c
parent6932eb76e3631e5e8e12e1545d152a3b8567297c (diff)
downloadphp-git-2be5a1e3da05caee88bc92f2abec223cc999c1f0.tar.gz
Enable backwards reading in list command
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r--phpdbg_prompt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 679f52f95b..eff36f4253 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -668,6 +668,10 @@ PHPDBG_COMMAND(back) /* {{{ */
zval **file, **line, **funcname, **class, **type, **args;
char is_class;
+ if (limit < 0) {
+ phpdbg_error("Invalid backtrace size %d", limit);
+ }
+
zend_fetch_debug_backtrace(
&zbacktrace, 0, 0, limit TSRMLS_CC);