diff --git a/phpdbg.c b/phpdbg.c index 3cc4ba8a543..ca38078b14b 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -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); diff --git a/phpdbg.h b/phpdbg.h index 908c1cc4b7a..446b0671948 100644 --- a/phpdbg.h +++ b/phpdbg.h @@ -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) diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index df0f21beb41..fb6ba7cebc1 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -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 ]\n"); + printf("[Please report bugs to <%s>]\n", PHPDBG_ISSUES); return SUCCESS; } /* }}} */