Changeset 780 in svn for trunk/xcache.c


Ignore:
Timestamp:
2011-04-22T11:33:46+02:00 (4 years ago)
Author:
Xuefer
Message:

prepare for use()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r767 r780  
    28752875}
    28762876/* }}} */
     2877/* {{{ proto int xcache_get_refcount(mixed variable)
     2878   Get reference count of variable */
     2879PHP_FUNCTION(xcache_get_refcount)
     2880{
     2881    zval *variable;
     2882    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &variable) == FAILURE) {
     2883        RETURN_NULL();
     2884    }
     2885
     2886    RETURN_LONG(Z_REFCOUNT_P(variable));
     2887}
     2888/* }}} */
     2889/* {{{ proto bool xcache_get_isref(mixed variable)
     2890   check if variable data is marked referenced */
     2891PHP_FUNCTION(xcache_get_isref)
     2892{
     2893    zval *variable;
     2894    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &variable) == FAILURE) {
     2895        RETURN_NULL();
     2896    }
     2897
     2898    RETURN_BOOL(Z_ISREF_P(variable));
     2899}
     2900/* }}} */
    28772901#ifdef HAVE_XCACHE_DPRINT
    28782902/* {{{ proto bool  xcache_dprint(mixed value)
     
    31163140    PHP_FE(xcache_unset,             NULL)
    31173141    PHP_FE(xcache_unset_by_prefix,   NULL)
     3142    PHP_FE(xcache_get_refcount,      NULL)
     3143    PHP_FE(xcache_get_isref,         NULL)
    31183144#ifdef HAVE_XCACHE_DPRINT
    31193145    PHP_FE(xcache_dprint,            NULL)
Note: See TracChangeset for help on using the changeset viewer.