Permalink
Browse files

Added arginfo for reflection

git-svn-id: https://svn.php.net/repository/pecl/xhprof/trunk@297630 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
philip
philip committed Apr 7, 2010
1 parent eff9881 commit 0b3d4054d86b5a52d258623be1497c0c1c3f9a54
Showing with 19 additions and 4 deletions.
  1. +19 −4 extension/xhprof.c
View
@@ -280,17 +280,32 @@ static inline zval *hp_zval_at_key(char *key,
static inline char **hp_strings_in_zval(zval *values);
static inline void hp_array_del(char **name_array);
+/* {{{ arginfo */
+ZEND_BEGIN_ARG_INFO_EX(arginfo_xhprof_enable, 0, 0, 0)
+ ZEND_ARG_INFO(0, flags)
+ ZEND_ARG_INFO(0, options)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO(arginfo_xhprof_disable, 0)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO(arginfo_xhprof_sample_enable, 0)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO(arginfo_xhprof_sample_disable, 0)
+ZEND_END_ARG_INFO()
+
/**
* *********************
* PHP EXTENSION GLOBALS
* *********************
*/
/* List of functions implemented/exposed by xhprof */
zend_function_entry xhprof_functions[] = {
- PHP_FE(xhprof_enable, NULL)
- PHP_FE(xhprof_disable, NULL)
- PHP_FE(xhprof_sample_enable, NULL)
- PHP_FE(xhprof_sample_disable, NULL)
+ PHP_FE(xhprof_enable, arginfo_xhprof_enable)
+ PHP_FE(xhprof_disable, arginfo_xhprof_disable)
+ PHP_FE(xhprof_sample_enable, arginfo_xhprof_sample_enable)
+ PHP_FE(xhprof_sample_disable, arginfo_xhprof_sample_disable)
{NULL, NULL, NULL}
};

0 comments on commit 0b3d405

Please sign in to comment.