Changeset 784 for branches/1.3/xcache.c
- Timestamp:
- 2011-04-22T17:18:42+02:00 (2 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
- Property svn:mergeinfo changed
/trunk merged: 775-778,780-783
- Property svn:mergeinfo changed
-
branches/1.3/xcache.c
r766 r784 2280 2280 } 2281 2281 /* }}} */ 2282 /* {{{ proto int xcache_get_refcount(mixed variable) 2283 XCache internal uses only: Get reference count of variable */ 2284 PHP_FUNCTION(xcache_get_refcount) 2285 { 2286 zval *variable; 2287 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &variable) == FAILURE) { 2288 RETURN_NULL(); 2289 } 2290 2291 RETURN_LONG(Z_REFCOUNT_P(variable)); 2292 } 2293 /* }}} */ 2294 /* {{{ proto bool xcache_get_isref(mixed variable) 2295 XCache internal uses only: Check if variable data is marked referenced */ 2296 ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_get_isref, 0, 0, 1) 2297 ZEND_ARG_INFO(1, variable) 2298 ZEND_END_ARG_INFO() 2299 2300 PHP_FUNCTION(xcache_get_isref) 2301 { 2302 zval *variable; 2303 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &variable) == FAILURE) { 2304 RETURN_NULL(); 2305 } 2306 2307 RETURN_BOOL(Z_ISREF_P(variable) && Z_REFCOUNT_P(variable) >= 3); 2308 } 2309 /* }}} */ 2282 2310 #ifdef HAVE_XCACHE_DPRINT 2283 2311 /* {{{ proto bool xcache_dprint(mixed value) … … 2428 2456 /* }}} */ 2429 2457 #endif 2430 /* {{{ proto mixed xcache_get_special_value(zval value) */ 2458 /* {{{ proto mixed xcache_get_special_value(zval value) 2459 XCache internal use only: For decompiler to get static value with type fixed */ 2431 2460 PHP_FUNCTION(xcache_get_special_value) 2432 2461 { … … 2453 2482 RETURN_NULL(); 2454 2483 } 2484 } 2485 /* }}} */ 2486 /* {{{ proto int xcache_get_type(zval value) 2487 XCache internal use only for disassembler to get variable type in engine level */ 2488 PHP_FUNCTION(xcache_get_type) 2489 { 2490 zval *value; 2491 2492 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &value) == FAILURE) { 2493 return; 2494 } 2495 2496 RETURN_LONG(Z_TYPE_P(value)); 2455 2497 } 2456 2498 /* }}} */ … … 2507 2549 #endif 2508 2550 PHP_FE(xcache_get_special_value, NULL) 2551 PHP_FE(xcache_get_type, NULL) 2509 2552 PHP_FE(xcache_get_op_type, NULL) 2510 2553 PHP_FE(xcache_get_data_type, NULL) … … 2521 2564 PHP_FE(xcache_unset, NULL) 2522 2565 PHP_FE(xcache_unset_by_prefix, NULL) 2566 PHP_FE(xcache_get_refcount, NULL) 2567 PHP_FE(xcache_get_isref, arginfo_xcache_get_isref) 2523 2568 #ifdef HAVE_XCACHE_DPRINT 2524 2569 PHP_FE(xcache_dprint, NULL)
Note: See TracChangeset
for help on using the changeset viewer.

