mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Add the -V
option to print the version number.
This commit is contained in:
parent
7e0d1938f9
commit
abf68be7a4
2 changed files with 14 additions and 0 deletions
13
phpdbg.c
13
phpdbg.c
|
@ -566,6 +566,7 @@ const opt_struct OPTIONS[] = { /* {{{ */
|
|||
{'l', 1, "listen"},
|
||||
{'a', 1, "address-or-any"},
|
||||
#endif
|
||||
{'V', 0, "version"},
|
||||
{'-', 0, NULL}
|
||||
}; /* }}} */
|
||||
|
||||
|
@ -998,6 +999,18 @@ phpdbg_main:
|
|||
} else address = strdup(php_optarg);
|
||||
} break;
|
||||
#endif
|
||||
|
||||
case 'V': {
|
||||
printf(
|
||||
"phpdbg %s (built: %s %s)\nCopyright (c) 2013 %s\nPHP %s, Copyright (c) 1997-2013 The PHP Group\n",
|
||||
PHPDBG_VERSION,
|
||||
__DATE__,
|
||||
__TIME__,
|
||||
PHPDBG_AUTHORS,
|
||||
PHP_VERSION
|
||||
);
|
||||
return 0;
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue