Skip to content

Commit 95f5d77

Browse files
committed
arginfo for userland functions
1 parent 8c67cf3 commit 95f5d77

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

phpdbg.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
132132
return SUCCESS;
133133
} /* }}} */
134134

135-
/* {{{ proto void phpdbg_break([string expression])
135+
/* {{{ proto void phpdbg_break([integer type, string expression])
136136
instructs phpdbg to insert a breakpoint at the next opcode */
137137
static PHP_FUNCTION(phpdbg_break)
138138
{
@@ -189,9 +189,17 @@ static PHP_FUNCTION(phpdbg_clear)
189189
zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_COND]);
190190
} /* }}} */
191191

192+
ZEND_BEGIN_ARG_INFO_EX(phpdbg_break_arginfo, 0, 0, 0)
193+
ZEND_ARG_INFO(0, type)
194+
ZEND_ARG_INFO(0, expression)
195+
ZEND_END_ARG_INFO()
196+
197+
ZEND_BEGIN_ARG_INFO_EX(phpdbg_clear_arginfo, 0, 0, 0)
198+
ZEND_END_ARG_INFO()
199+
192200
zend_function_entry phpdbg_user_functions[] = {
193-
PHP_FE(phpdbg_clear, NULL)
194-
PHP_FE(phpdbg_break, NULL)
201+
PHP_FE(phpdbg_clear, phpdbg_clear_arginfo)
202+
PHP_FE(phpdbg_break, phpdbg_break_arginfo)
195203
#ifdef PHP_FE_END
196204
PHP_FE_END
197205
#else

0 commit comments

Comments
 (0)