com php-src: show where: phpdbg_cmd.c

From: Date: Tue, 19 Nov 2013 19:35:48 +0000
Subject: com php-src: show where: phpdbg_cmd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74796@lists.php.net to get a copy of this message
Commit: 99a1414924a840a059caa65147e36a6dc3ffdfc4 Author: krakjoe <joe.watkins@live.co.uk> Tue, 19 Nov 2013 19:35:48 +0000 Parents: cfc62cdbe00d78e17b5289c10249c82a0f35a095 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=99a1414924a840a059caa65147e36a6dc3ffdfc4 Log: show where Changed paths: M phpdbg_cmd.c Diff: diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 765999b..f65b9be 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; } /* }}} */

« previous php.cvs (#74796) next »