Changeset 781 for trunk/xcache.c
- Timestamp:
- 2011-04-22T14:05:08+02:00 (2 years ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r780 r781 2876 2876 /* }}} */ 2877 2877 /* {{{ proto int xcache_get_refcount(mixed variable) 2878 Get reference count of variable */2878 XCache internal uses only: Get reference count of variable */ 2879 2879 PHP_FUNCTION(xcache_get_refcount) 2880 2880 { … … 2888 2888 /* }}} */ 2889 2889 /* {{{ proto bool xcache_get_isref(mixed variable) 2890 check if variable data is marked referenced */ 2890 XCache internal uses only: Check if variable data is marked referenced */ 2891 ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_get_isref, 0, 0, 1) 2892 ZEND_ARG_INFO(1, variable) 2893 ZEND_END_ARG_INFO() 2894 2891 2895 PHP_FUNCTION(xcache_get_isref) 2892 2896 { … … 2896 2900 } 2897 2901 2898 RETURN_BOOL(Z_ISREF_P(variable) );2902 RETURN_BOOL(Z_ISREF_P(variable) && Z_REFCOUNT_P(variable) >= 3); 2899 2903 } 2900 2904 /* }}} */ … … 3047 3051 /* }}} */ 3048 3052 #endif 3049 /* {{{ proto mixed xcache_get_special_value(zval value) */ 3053 /* {{{ proto mixed xcache_get_special_value(zval value) 3054 XCache internal use only: For decompiler to get static value with type fixed */ 3050 3055 PHP_FUNCTION(xcache_get_special_value) 3051 3056 { … … 3072 3077 RETURN_NULL(); 3073 3078 } 3079 } 3080 /* }}} */ 3081 /* {{{ proto int xcache_get_type(zval value) 3082 XCache internal use only for disassembler to get variable type in engine level */ 3083 PHP_FUNCTION(xcache_get_type) 3084 { 3085 zval *value; 3086 3087 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &value) == FAILURE) { 3088 return; 3089 } 3090 3091 RETURN_LONG(Z_TYPE_P(value)); 3074 3092 } 3075 3093 /* }}} */ … … 3126 3144 #endif 3127 3145 PHP_FE(xcache_get_special_value, NULL) 3146 PHP_FE(xcache_get_type, NULL) 3128 3147 PHP_FE(xcache_get_op_type, NULL) 3129 3148 PHP_FE(xcache_get_data_type, NULL) … … 3141 3160 PHP_FE(xcache_unset_by_prefix, NULL) 3142 3161 PHP_FE(xcache_get_refcount, NULL) 3143 PHP_FE(xcache_get_isref, NULL)3162 PHP_FE(xcache_get_isref, arginfo_xcache_get_isref) 3144 3163 #ifdef HAVE_XCACHE_DPRINT 3145 3164 PHP_FE(xcache_dprint, NULL)
Note: See TracChangeset
for help on using the changeset viewer.

