Skip to content

Commit cd8efea

Browse files
committed
Merge branch 'master' of github.com:krakjoe/phpdbg
2 parents d13c02b + 95f5d77 commit cd8efea

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
@@ -133,7 +133,7 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
133133
return SUCCESS;
134134
} /* }}} */
135135

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

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

0 commit comments

Comments
 (0)