Changeset 780 for trunk/xcache.c
- Timestamp:
- 2011-04-22T11:33:46+02:00 (2 years ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r767 r780 2875 2875 } 2876 2876 /* }}} */ 2877 /* {{{ proto int xcache_get_refcount(mixed variable) 2878 Get reference count of variable */ 2879 PHP_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 */ 2891 PHP_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 /* }}} */ 2877 2901 #ifdef HAVE_XCACHE_DPRINT 2878 2902 /* {{{ proto bool xcache_dprint(mixed value) … … 3116 3140 PHP_FE(xcache_unset, NULL) 3117 3141 PHP_FE(xcache_unset_by_prefix, NULL) 3142 PHP_FE(xcache_get_refcount, NULL) 3143 PHP_FE(xcache_get_isref, NULL) 3118 3144 #ifdef HAVE_XCACHE_DPRINT 3119 3145 PHP_FE(xcache_dprint, NULL)
Note: See TracChangeset
for help on using the changeset viewer.

