Skip to content

Commit

Permalink
Added arginfo for reflection
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pecl/xhprof/trunk@297630 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
philip committed Apr 7, 2010
1 parent eff9881 commit 0b3d405
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions extension/xhprof.c
Expand Up @@ -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}
};

Expand Down

0 comments on commit 0b3d405

Please sign in to comment.