1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 04:32:19 +02:00

blurb/version/issues string

This commit is contained in:
krakjoe
2013-11-12 02:04:54 +00:00
parent fa3056c833
commit d7e09f9564
3 changed files with 10 additions and 2 deletions

View File

@@ -379,6 +379,10 @@ int main(int argc, char *argv[]) /* {{{ */
ini_entries_len += sizeof(phpdbg_ini_hardcoded) - 2;
phpdbg->ini_entries = ini_entries;
printf("[Welcome to phpdbg, the interactive PHP debugger, v%s]\n", PHPDBG_VERSION);
printf("To get help using phpdbg type \"help\" and press enter\n");
printf("[Please report bugs to <%s>]\n", PHPDBG_ISSUES);
if (phpdbg->startup(phpdbg) == SUCCESS) {
zend_activate(TSRMLS_C);

View File

@@ -63,6 +63,10 @@
#define PHPDBG_IS_QUIET 0x00100000
#define PHPDBG_IS_QUITTING 0x01000000 /* }}} */
/* {{{ strings */
#define PHPDBG_ISSUES "http://github.com/krakjoe/phpdbg/issues"
#define PHPDBG_VERSION "0.0.0" /* }}} */
typedef struct _phpdbg_command_t phpdbg_command_t;
ZEND_BEGIN_MODULE_GLOBALS(phpdbg)

View File

@@ -453,7 +453,7 @@ static PHPDBG_COMMAND(clear) /* {{{ */
static PHPDBG_COMMAND(help) /* {{{ */
{
printf("[Welcome to phpdbg, the interactive PHP debugger.]\n");
printf("[Welcome to phpdbg, the interactive PHP debugger, v%s]\n", PHPDBG_VERSION);
if (!expr_len) {
const phpdbg_command_t *prompt_command = phpdbg_prompt_commands;
@@ -477,7 +477,7 @@ static PHPDBG_COMMAND(help) /* {{{ */
printf("failed to find help command: %s\n", expr);
}
}
printf("[Please report bugs to <https://github.com/krakjoe/phpdbg/issues>]\n");
printf("[Please report bugs to <%s>]\n", PHPDBG_ISSUES);
return SUCCESS;
} /* }}} */