Changeset 532 for trunk/xcache.c


Ignore:
Timestamp:
2008-02-29T03:47:48+01:00 (6 years ago)
Author:
moo
Message:

exports xcache_dprint() to php script for debugging purpose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r522 r532  
    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.