From: krakjoe Date: Tue, 19 Nov 2013 19:35:48 +0000 (+0000) Subject: show where X-Git-Tag: php-5.6.0alpha1~110^2~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99a1414924a840a059caa65147e36a6dc3ffdfc4;p=php show where --- diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 765999b186..f65b9bedae 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -193,10 +193,16 @@ static inline phpdbg_input_t** phpdbg_read_argv(char *buffer, int *argc TSRMLS_D case IN_STRING: phpdbg_error( - "Malformed command line @ %d!", l); + "Malformed command line (unclosed quote) @ %d: %s!", + (p - buffer)-1, &buffer[(p - buffer)-1]); break; } + if ((*argc) == 0) { + /* not needed */ + efree(argv); + } + return argv; } /* }}} */