From 5aae01104f88f98f42fd997d360757651f7cc919 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Wed, 12 Oct 2016 20:11:51 +0200 Subject: Add stdin command and -s command line parameter to phpdbg This allows reading the initial script file from stdin instead of being forced to put the script into a file in order to run it with phpdbg. Especially important for programmatic execution of phpdbg. Also adding tests/include_once.phpt and tests/set_exception_handler.phpt as I seem to have forgotten to git add them sometime long ago... --- sapi/phpdbg/phpdbg_prompt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sapi/phpdbg/phpdbg_prompt.h') diff --git a/sapi/phpdbg/phpdbg_prompt.h b/sapi/phpdbg/phpdbg_prompt.h index c93beeba03..2966104e58 100644 --- a/sapi/phpdbg/phpdbg_prompt.h +++ b/sapi/phpdbg/phpdbg_prompt.h @@ -27,11 +27,13 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default); void phpdbg_try_file_init(char *init_file, size_t init_file_len, zend_bool free_init); int phpdbg_interactive(zend_bool allow_async_unsafe, char *input); int phpdbg_compile(void); +int phpdbg_compile_stdin(zend_string *code); void phpdbg_force_interruption(void); /* }}} */ /* {{{ phpdbg command handlers */ PHPDBG_COMMAND(exec); +PHPDBG_COMMAND(stdin); PHPDBG_COMMAND(step); PHPDBG_COMMAND(continue); PHPDBG_COMMAND(run); -- cgit v1.2.1