Changeset df36790 in git


Ignore:
Timestamp:
2008-02-29T02:47:48Z (12 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
1917ea0
Parents:
9fb4213
Message:

exports xcache_dprint() to php script for debugging purpose

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@532 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    r38643f8 rdf36790  
    23902390}
    23912391/* }}} */
     2392#ifdef HAVE_XCACHE_DPRINT
     2393/* {{{ proto bool  xcache_dprint(mixed value)
     2394   Prints variable (or value) internal struct (debug only) */
     2395PHP_FUNCTION(xcache_dprint)
     2396{
     2397    zval *value;
     2398
     2399    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &value) == FAILURE) {
     2400        return;
     2401    }
     2402    xc_dprint_zval(value, 0 TSRMLS_CC);
     2403}
     2404/* }}} */
     2405#endif
    23922406/* {{{ proto string xcache_asm(string filename)
    23932407 */
     
    26152629    PHP_FE(xcache_isset,             NULL)
    26162630    PHP_FE(xcache_unset,             NULL)
     2631#ifdef HAVE_XCACHE_DPRINT
     2632    PHP_FE(xcache_dprint,            NULL)
     2633#endif
    26172634    {NULL, NULL,                     NULL}
    26182635};
Note: See TracChangeset for help on using the changeset viewer.