com php-src: Add phpdbg -h for help: sapi/phpdbg/phpdbg.c

From: Date: Sat, 21 Mar 2015 22:16:53 +0000
Subject: com php-src: Add phpdbg -h for help: sapi/phpdbg/phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85756@lists.php.net to get a copy of this message
Commit: 2ed008583309e07cb11dbf14de919b21bd68ef16 Author: Bob Weinand <bobwei9@hotmail.com> Sat, 21 Mar 2015 22:40:44 +0100 Parents: 97887e37168c73fb028a4b58bf59010e6217ef7b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2ed008583309e07cb11dbf14de919b21bd68ef16 Log: Add phpdbg -h for help Changed paths: M sapi/phpdbg/phpdbg.c Diff: diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 3d5874d..d9d61a8 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -761,6 +761,7 @@ const opt_struct OPTIONS[] = { /* {{{ */ {'a', 1, "address-or-any"}, #endif {'x', 0, "xml output"}, + {'h', 0, "help"}, {'V', 0, "version"}, {'-', 0, NULL} }; /* }}} */ @@ -1202,6 +1203,18 @@ phpdbg_main: flags |= PHPDBG_WRITE_XML; break; + + case 'h': { + sapi_startup(phpdbg); + phpdbg->startup(phpdbg); + PHPDBG_G(flags) = 0; + phpdbg_set_prompt(PHPDBG_DEFAULT_PROMPT); + phpdbg_do_help(NULL); + sapi_deactivate(); + sapi_shutdown(); + return 0; + } break; + case 'V': { sapi_startup(phpdbg); phpdbg->startup(phpdbg);

« previous php.cvs (#85756) next »