xref: /php-src/sapi/phpdbg/phpdbg_arginfo.h (revision 10957e49)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 08e29f02953f23bfce6ce04f435227b4e5e61545 */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_break_next, 0, 0, IS_VOID, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_break_file, 0, 2, IS_VOID, 0)
8 	ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0)
9 	ZEND_ARG_TYPE_INFO(0, line, IS_LONG, 0)
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_break_method, 0, 2, IS_VOID, 0)
13 	ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
14 	ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
15 ZEND_END_ARG_INFO()
16 
17 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_break_function, 0, 1, IS_VOID, 0)
18 	ZEND_ARG_TYPE_INFO(0, function, IS_STRING, 0)
19 ZEND_END_ARG_INFO()
20 
21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_color, 0, 2, IS_VOID, 0)
22 	ZEND_ARG_TYPE_INFO(0, element, IS_LONG, 0)
23 	ZEND_ARG_TYPE_INFO(0, color, IS_STRING, 0)
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_prompt, 0, 1, IS_VOID, 0)
27 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
28 ZEND_END_ARG_INFO()
29 
30 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_phpdbg_exec, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
31 	ZEND_ARG_TYPE_INFO(0, context, IS_STRING, 0)
32 ZEND_END_ARG_INFO()
33 
34 #define arginfo_phpdbg_clear arginfo_phpdbg_break_next
35 
36 #define arginfo_phpdbg_start_oplog arginfo_phpdbg_break_next
37 
38 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_end_oplog, 0, 0, IS_ARRAY, 1)
39 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
40 ZEND_END_ARG_INFO()
41 
42 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phpdbg_get_executable, 0, 0, IS_ARRAY, 0)
43 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
44 ZEND_END_ARG_INFO()
45 
46 ZEND_FUNCTION(phpdbg_break_next);
47 ZEND_FUNCTION(phpdbg_break_file);
48 ZEND_FUNCTION(phpdbg_break_method);
49 ZEND_FUNCTION(phpdbg_break_function);
50 ZEND_FUNCTION(phpdbg_color);
51 ZEND_FUNCTION(phpdbg_prompt);
52 ZEND_FUNCTION(phpdbg_exec);
53 ZEND_FUNCTION(phpdbg_clear);
54 ZEND_FUNCTION(phpdbg_start_oplog);
55 ZEND_FUNCTION(phpdbg_end_oplog);
56 ZEND_FUNCTION(phpdbg_get_executable);
57 
58 static const zend_function_entry ext_functions[] = {
59 	ZEND_FE(phpdbg_break_next, arginfo_phpdbg_break_next)
60 	ZEND_FE(phpdbg_break_file, arginfo_phpdbg_break_file)
61 	ZEND_FE(phpdbg_break_method, arginfo_phpdbg_break_method)
62 	ZEND_FE(phpdbg_break_function, arginfo_phpdbg_break_function)
63 	ZEND_FE(phpdbg_color, arginfo_phpdbg_color)
64 	ZEND_FE(phpdbg_prompt, arginfo_phpdbg_prompt)
65 	ZEND_FE(phpdbg_exec, arginfo_phpdbg_exec)
66 	ZEND_FE(phpdbg_clear, arginfo_phpdbg_clear)
67 	ZEND_FE(phpdbg_start_oplog, arginfo_phpdbg_start_oplog)
68 	ZEND_FE(phpdbg_end_oplog, arginfo_phpdbg_end_oplog)
69 	ZEND_FE(phpdbg_get_executable, arginfo_phpdbg_get_executable)
70 	ZEND_FE_END
71 };
72 
register_phpdbg_symbols(int module_number)73 static void register_phpdbg_symbols(int module_number)
74 {
75 	REGISTER_STRING_CONSTANT("PHPDBG_VERSION", PHPDBG_VERSION, CONST_PERSISTENT);
76 	REGISTER_LONG_CONSTANT("PHPDBG_COLOR_PROMPT", PHPDBG_COLOR_PROMPT, CONST_PERSISTENT);
77 	REGISTER_LONG_CONSTANT("PHPDBG_COLOR_NOTICE", PHPDBG_COLOR_NOTICE, CONST_PERSISTENT);
78 	REGISTER_LONG_CONSTANT("PHPDBG_COLOR_ERROR", PHPDBG_COLOR_ERROR, CONST_PERSISTENT);
79 }
80