mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Rename has_args to arg_type
This commit is contained in:
parent
35601e6fec
commit
eef21c186c
2 changed files with 3 additions and 3 deletions
|
@ -164,10 +164,10 @@ int phpdbg_do_cmd( const phpdbg_command_t *command,
|
|||
|
||||
*selected = (phpdbg_command_t*) command;
|
||||
|
||||
if (command->has_args == REQUIRED_ARG && param->type == EMPTY_PARAM) {
|
||||
if (command->arg_type == REQUIRED_ARG && param->type == EMPTY_PARAM) {
|
||||
phpdbg_error("This command requires argument!");
|
||||
rc = FAILURE;
|
||||
} else if (command->has_args == NO_ARG && param->type != EMPTY_PARAM) {
|
||||
} else if (command->arg_type == NO_ARG && param->type != EMPTY_PARAM) {
|
||||
phpdbg_error("This command does not expect argument!");
|
||||
rc = FAILURE;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue