diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2016-10-12 20:11:51 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2016-10-12 20:15:49 +0200 |
| commit | 5aae01104f88f98f42fd997d360757651f7cc919 (patch) | |
| tree | 7952bc03a1e88f1c1208e19c23e8a98ba968e3b7 /sapi/phpdbg/phpdbg_prompt.h | |
| parent | 74b5662536ccdf9b7b02c495f02a27c64e27fff7 (diff) | |
| download | php-git-5aae01104f88f98f42fd997d360757651f7cc919.tar.gz | |
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...
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.h')
| -rw-r--r-- | sapi/phpdbg/phpdbg_prompt.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
