Changeset 9 in svn for trunk


Ignore:
Timestamp:
2006-05-20T03:53:24+02:00 (9 years ago)
Author:
Xuefer
Message:

update proto description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r8 r9  
    11521152}
    11531153/* }}} */
    1154 /* {{{ proto array xcache_count(int type) */
     1154/* {{{ proto int xcache_count(int type)
     1155   Return count of cache on specified cache type */
    11551156PHP_FUNCTION(xcache_count)
    11561157{
     
    11581159}
    11591160/* }}} */
    1160 /* {{{ proto array xcache_info(int type, int id) */
     1161/* {{{ proto array xcache_info(int type, int id)
     1162   Get cache info by id on specified cache type */
    11611163PHP_FUNCTION(xcache_info)
    11621164{
     
    11641166}
    11651167/* }}} */
    1166 /* {{{ proto array xcache_list(int type, int id) */
     1168/* {{{ proto array xcache_list(int type, int id)
     1169   Get cache entries list by id on specified cache type */
    11671170PHP_FUNCTION(xcache_list)
    11681171{
     
    11701173}
    11711174/* }}} */
    1172 /* {{{ proto array xcache_clear_cache(int type, int id) */
     1175/* {{{ proto array xcache_clear_cache(int type, int id)
     1176   Clear cache by id on specified cache type */
    11731177PHP_FUNCTION(xcache_clear_cache)
    11741178{
     
    12121216/* }}} */
    12131217#define TIME_MAX (sizeof(time_t) == sizeof(long) ? LONG_MAX : INT_MAX)
    1214 /* {{{ proto mixed xcache_get(string name) */
     1218/* {{{ proto mixed xcache_get(string name)
     1219   Get cached data by specified name */
    12151220PHP_FUNCTION(xcache_get)
    12161221{
     
    12421247}
    12431248/* }}} */
    1244 /* {{{ proto bool  xcache_set(string name, mixed value [, int ttl]) */
     1249/* {{{ proto bool  xcache_set(string name, mixed value [, int ttl])
     1250   Store data to cache by specified name */
    12451251PHP_FUNCTION(xcache_set)
    12461252{
     
    12681274}
    12691275/* }}} */
    1270 /* {{{ proto mixed xcache_isset(string name) */
     1276/* {{{ proto bool  xcache_isset(string name)
     1277   Check if an entry exists in cache by specified name */
    12711278PHP_FUNCTION(xcache_isset)
    12721279{
     
    12981305}
    12991306/* }}} */
    1300 /* {{{ proto bool  xcache_unset(string name) */
     1307/* {{{ proto bool  xcache_unset(string name)
     1308   Unset existing data in cache by specified name */
    13011309PHP_FUNCTION(xcache_unset)
    13021310{
     
    13981406}
    13991407/* }}} */
    1400 /* {{{ proto int xcache_inc(string name [, int value [, int ttl]]) */
     1408/* {{{ proto int xcache_inc(string name [, int value [, int ttl]])
     1409   Increase an int counter in cache by specified name, create it if not exists */
    14011410PHP_FUNCTION(xcache_inc)
    14021411{
     
    14041413}
    14051414/* }}} */
    1406 /* {{{ proto int xcache_dec(string name [, int value [, int ttl]]) */
     1415/* {{{ proto int xcache_dec(string name [, int value [, int ttl]])
     1416   Decrease an int counter in cache by specified name, create it if not exists */
    14071417PHP_FUNCTION(xcache_dec)
    14081418{
     
    14101420}
    14111421/* }}} */
    1412 /* {{{ proto string xcache_asm(string filename) */
     1422/* {{{ proto string xcache_asm(string filename)
     1423 */
    14131424#ifdef HAVE_XCACHE_ASSEMBLER
    14141425PHP_FUNCTION(xcache_asm)
     
    14181429/* }}} */
    14191430#ifdef HAVE_XCACHE_DISASSEMBLER
    1420 /* {{{ proto string xcache_dasm_file(string filename) */
     1431/* {{{ proto array  xcache_dasm_file(string filename)
     1432   Disassemble file into opcode array by filename */
    14211433PHP_FUNCTION(xcache_dasm_file)
    14221434{
     
    14321444}
    14331445/* }}} */
    1434 /* {{{ proto string xcache_dasm_string(string code) */
     1446/* {{{ proto array  xcache_dasm_string(string code)
     1447   Disassemble php code into opcode array */
    14351448PHP_FUNCTION(xcache_dasm_string)
    14361449{
     
    14441457/* }}} */
    14451458#endif
    1446 /* {{{ proto string xcache_encode(string filename) */
     1459/* {{{ proto string xcache_encode(string filename)
     1460   Encode php file into XCache opcode encoded format */
    14471461#ifdef HAVE_XCACHE_ENCODER
    14481462PHP_FUNCTION(xcache_encode)
     
    14511465#endif
    14521466/* }}} */
    1453 /* {{{ proto bool xcache_decode(string filename) */
     1467/* {{{ proto bool xcache_decode_file(string filename)
     1468   Decode(load) opcode from XCache encoded format file */
    14541469#ifdef HAVE_XCACHE_DECODER
    1455 PHP_FUNCTION(xcache_decode)
     1470PHP_FUNCTION(xcache_decode_file)
     1471{
     1472}
     1473#endif
     1474/* }}} */
     1475/* {{{ proto bool xcache_decode_string(string data)
     1476   Decode(load) opcode from XCache encoded format data */
     1477#ifdef HAVE_XCACHE_DECODER
     1478PHP_FUNCTION(xcache_decode_string)
    14561479{
    14571480}
     
    15601583PHP_FUNCTION(xcache_coredump)
    15611584{
    1562     raise(SIGSEGV);
     1585    if (xc_test) {
     1586        raise(SIGSEGV);
     1587    }
     1588    else {
     1589        php_error_docref(NULL TSRMLS_CC, E_WARNING, "xcache.test must be enabled to test xcache_coredump()");
     1590    }
    15631591}
    15641592/* }}} */
     
    15941622#endif
    15951623#ifdef HAVE_XCACHE_DECODER
    1596     PHP_FE(xcache_decode,            NULL)
     1624    PHP_FE(xcache_decode_file,       NULL)
     1625    PHP_FE(xcache_decode_string,     NULL)
    15971626#endif
    15981627#ifdef HAVE_XCACHE_COVERAGE
     
    16231652    if (original_sigsegv_handler == xcache_sigsegv_handler) {
    16241653        signal(SIGSEGV, original_sigsegv_handler);
    1625     } else {
     1654    }
     1655    else {
    16261656        signal(SIGSEGV, SIG_DFL);
    16271657    }
Note: See TracChangeset for help on using the changeset viewer.