From: krakjoe Date: Fri, 15 Nov 2013 16:22:20 +0000 (+0000) Subject: arginfo for userland functions X-Git-Tag: php-5.6.0alpha1~110^2~298^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95f5d779ba4f032cebc708f6a2da1631146f265f;p=php arginfo for userland functions --- diff --git a/phpdbg.c b/phpdbg.c index e02b1b3937..78a0290291 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -132,7 +132,7 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */ return SUCCESS; } /* }}} */ -/* {{{ proto void phpdbg_break([string expression]) +/* {{{ proto void phpdbg_break([integer type, string expression]) instructs phpdbg to insert a breakpoint at the next opcode */ static PHP_FUNCTION(phpdbg_break) { @@ -189,9 +189,17 @@ static PHP_FUNCTION(phpdbg_clear) zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_COND]); } /* }}} */ +ZEND_BEGIN_ARG_INFO_EX(phpdbg_break_arginfo, 0, 0, 0) + ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, expression) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(phpdbg_clear_arginfo, 0, 0, 0) +ZEND_END_ARG_INFO() + zend_function_entry phpdbg_user_functions[] = { - PHP_FE(phpdbg_clear, NULL) - PHP_FE(phpdbg_break, NULL) + PHP_FE(phpdbg_clear, phpdbg_clear_arginfo) + PHP_FE(phpdbg_break, phpdbg_break_arginfo) #ifdef PHP_FE_END PHP_FE_END #else