com php-src: arginfo for userland functions: phpdbg.c
| From: | Bob Weinand | Date: | Fri, 15 Nov 2013 16:22:20 +0000 |
| Subject: | com php-src: arginfo for userland functions: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74941@lists.php.net to get a copy of this message | ||
Commit: 95f5d779ba4f032cebc708f6a2da1631146f265f
Author: krakjoe <joe.watkins@live.co.uk> Fri, 15 Nov 2013 16:22:20 +0000
Parents: 8c67cf30b5453c44fd70b10c632690b064fbcf45
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=95f5d779ba4f032cebc708f6a2da1631146f265f
Log:
arginfo for userland functions
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index e02b1b3..78a0290 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