Commit: d7e09f95646f74f47e2ff15f1ef9b78da2592dec Author: krakjoe <joe.watk...@live.co.uk> Tue, 12 Nov 2013 02:04:54 +0000 Parents: fa3056c8332f6bc423b85cbf7312fb40a9f6023f Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d7e09f95646f74f47e2ff15f1ef9b78da2592dec Log: blurb/version/issues string Changed paths: M phpdbg.c M phpdbg.h M phpdbg_prompt.c Diff: diff --git a/phpdbg.c b/phpdbg.c index 3cc4ba8..ca38078 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 908c1cc..446b067 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 df0f21b..fb6ba7c 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 <https://github.com/krakjoe/phpdbg/issues>]\n"); + printf("[Please report bugs to <%s>]\n", PHPDBG_ISSUES); return SUCCESS; } /* }}} */ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php