Skip to content

Commit d7e09f9

Browse files
committed
blurb/version/issues string
1 parent fa3056c commit d7e09f9

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

phpdbg.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ int main(int argc, char *argv[]) /* {{{ */
379379
ini_entries_len += sizeof(phpdbg_ini_hardcoded) - 2;
380380

381381
phpdbg->ini_entries = ini_entries;
382+
383+
printf("[Welcome to phpdbg, the interactive PHP debugger, v%s]\n", PHPDBG_VERSION);
384+
printf("To get help using phpdbg type \"help\" and press enter\n");
385+
printf("[Please report bugs to <%s>]\n", PHPDBG_ISSUES);
382386

383387
if (phpdbg->startup(phpdbg) == SUCCESS) {
384388
zend_activate(TSRMLS_C);

phpdbg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
#define PHPDBG_IS_QUIET 0x00100000
6464
#define PHPDBG_IS_QUITTING 0x01000000 /* }}} */
6565

66+
/* {{{ strings */
67+
#define PHPDBG_ISSUES "http://github.com/krakjoe/phpdbg/issues"
68+
#define PHPDBG_VERSION "0.0.0" /* }}} */
69+
6670
typedef struct _phpdbg_command_t phpdbg_command_t;
6771

6872
ZEND_BEGIN_MODULE_GLOBALS(phpdbg)

phpdbg_prompt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ static PHPDBG_COMMAND(clear) /* {{{ */
453453

454454
static PHPDBG_COMMAND(help) /* {{{ */
455455
{
456-
printf("[Welcome to phpdbg, the interactive PHP debugger.]\n");
456+
printf("[Welcome to phpdbg, the interactive PHP debugger, v%s]\n", PHPDBG_VERSION);
457457

458458
if (!expr_len) {
459459
const phpdbg_command_t *prompt_command = phpdbg_prompt_commands;
@@ -477,7 +477,7 @@ static PHPDBG_COMMAND(help) /* {{{ */
477477
printf("failed to find help command: %s\n", expr);
478478
}
479479
}
480-
printf("[Please report bugs to <https://github.com/krakjoe/phpdbg/issues>]\n");
480+
printf("[Please report bugs to <%s>]\n", PHPDBG_ISSUES);
481481

482482
return SUCCESS;
483483
} /* }}} */

0 commit comments

Comments
 (0)