From 2ab2b74af3344f076248c5c5574c7b814a2b44fc Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Wed, 16 Apr 2014 20:55:02 +0200 Subject: [PATCH] Also check for length to not segfault --- phpdbg_prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 86fc4d718e..da06c71aff 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -645,7 +645,7 @@ PHPDBG_COMMAND(run) /* {{{ */ /* reset hit counters */ phpdbg_reset_breakpoints(TSRMLS_C); - if (param && param->type != EMPTY_PARAM) { + if (param && param->type != EMPTY_PARAM && param->len != 0) { char **argv = emalloc(5 * sizeof(char *)); int argc = 0; int i; -- 2.50.1