1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2018 The PHP Group | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Authors: Felipe Pena <felipe@php.net> | 16 | Authors: Joe Watkins <joe.watkins@live.co.uk> | 17 | Authors: Bob Weinand <bwoebi@php.net> | 18 +----------------------------------------------------------------------+ 19 */ 20 21 #ifndef PHPDBG_PROMPT_H 22 #define PHPDBG_PROMPT_H 23 24 /* {{{ */ 25 void phpdbg_string_init(char *buffer); 26 void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default); 27 void phpdbg_try_file_init(char *init_file, size_t init_file_len, zend_bool free_init); 28 int phpdbg_interactive(zend_bool allow_async_unsafe, char *input); 29 int phpdbg_compile(void); 30 int phpdbg_compile_stdin(zend_string *code); 31 void phpdbg_force_interruption(void); 32 /* }}} */ 33 34 /* {{{ phpdbg command handlers */ 35 PHPDBG_COMMAND(exec); 36 PHPDBG_COMMAND(stdin); 37 PHPDBG_COMMAND(step); 38 PHPDBG_COMMAND(continue); 39 PHPDBG_COMMAND(run); 40 PHPDBG_COMMAND(ev); 41 PHPDBG_COMMAND(until); 42 PHPDBG_COMMAND(finish); 43 PHPDBG_COMMAND(leave); 44 PHPDBG_COMMAND(frame); 45 PHPDBG_COMMAND(print); 46 PHPDBG_COMMAND(break); 47 PHPDBG_COMMAND(back); 48 PHPDBG_COMMAND(list); 49 PHPDBG_COMMAND(info); 50 PHPDBG_COMMAND(clean); 51 PHPDBG_COMMAND(clear); 52 PHPDBG_COMMAND(help); 53 PHPDBG_COMMAND(sh); 54 PHPDBG_COMMAND(dl); 55 PHPDBG_COMMAND(generator); 56 PHPDBG_COMMAND(set); 57 PHPDBG_COMMAND(source); 58 PHPDBG_COMMAND(export); 59 PHPDBG_COMMAND(register); 60 PHPDBG_COMMAND(quit); 61 PHPDBG_COMMAND(watch); 62 PHPDBG_COMMAND(next); 63 PHPDBG_COMMAND(eol); 64 PHPDBG_COMMAND(wait); /* }}} */ 65 66 /* {{{ prompt commands */ 67 extern const phpdbg_command_t phpdbg_prompt_commands[]; /* }}} */ 68 69 void phpdbg_execute_ex(zend_execute_data *execute_data); 70 71 #endif /* PHPDBG_PROMPT_H */ 72