com php-src: fix clashing: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Wed, 13 Nov 2013 18:17:06 +0000 |
| Subject: | com php-src: fix clashing: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74998@lists.php.net to get a copy of this message | ||
Commit: 0bc987c9b4d3575963b56dae5b45647ccf458992
Author: krakjoe <joe.watkins@live.co.uk> Wed, 13 Nov 2013 18:17:06 +0000
Parents: 375c90324c772ba14c558cd89f4c9ced96d752a8
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0bc987c9b4d3575963b56dae5b45647ccf458992
Log:
fix clashing
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 6edd61b..c2beddd 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -578,7 +578,7 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le
while (command && command->name && command->handler) {
if ((command->name_len == expr_len
&& memcmp(cmd, command->name, expr_len) == 0)
- ||(command->alias && command->alias == cmd_line[0])) {
+ || ((expr_len == 1) && (command->alias && command->alias ==
cmd_line[0]))) {
PHPDBG_G(last) = (phpdbg_command_t*) command;
PHPDBG_G(last_params) = expr;