exports xcache_dprint() to php script for debugging purpose
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@532 c26eb9a1-5813-0410-bd6c-c2e55f420ca73.0
parent
9fb4213b4e
commit
df36790c6a
17
xcache.c
17
xcache.c
|
@ -2389,6 +2389,20 @@ PHP_FUNCTION(xcache_dec)
|
|||
xc_var_inc_dec(-1, INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
||||
}
|
||||
/* }}} */
|
||||
#ifdef HAVE_XCACHE_DPRINT
|
||||
/* {{{ proto bool xcache_dprint(mixed value)
|
||||
Prints variable (or value) internal struct (debug only) */
|
||||
PHP_FUNCTION(xcache_dprint)
|
||||
{
|
||||
zval *value;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &value) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
xc_dprint_zval(value, 0 TSRMLS_CC);
|
||||
}
|
||||
/* }}} */
|
||||
#endif
|
||||
/* {{{ proto string xcache_asm(string filename)
|
||||
*/
|
||||
#ifdef HAVE_XCACHE_ASSEMBLER
|
||||
|
@ -2614,6 +2628,9 @@ static function_entry xcache_functions[] = /* {{{ */
|
|||
PHP_FE(xcache_set, NULL)
|
||||
PHP_FE(xcache_isset, NULL)
|
||||
PHP_FE(xcache_unset, NULL)
|
||||
#ifdef HAVE_XCACHE_DPRINT
|
||||
PHP_FE(xcache_dprint, NULL)
|
||||
#endif
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
/* }}} */
|
||||
|
|
Loading…
Reference in New Issue