From 893a27d6327e29f0af4f8de7dc4c9569dd4a3698 Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Sun, 20 Nov 2016 05:24:14 +0000 Subject: make it possible to show specific help pages without interactive session --- sapi/phpdbg/phpdbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg.c') diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 6038348588..a1aeef70d2 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1695,7 +1695,7 @@ phpdbg_main: PHPDBG_G(io)[PHPDBG_STDOUT].ptr = stdout; PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); if (show_help) { - phpdbg_do_help(NULL); + phpdbg_do_help_cmd(exec); } else if (show_version) { phpdbg_out( "phpdbg %s (built: %s %s)\nPHP %s, Copyright (c) 1997-2016 The PHP Group\n%s", -- cgit v1.2.1