Changeset 1027 in svn for trunk/xcache.c


Ignore:
Timestamp:
2012-07-22T08:57:08+02:00 (3 years ago)
Author:
Xuefer
Message:

refactor: improve build, kill warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1026 r1027  
    31323132/* {{{ proto bool xcache_get_isref(mixed variable)
    31333133   XCache internal uses only: Check if variable data is marked referenced */
     3134#ifdef ZEND_BEGIN_ARG_INFO_EX
    31343135ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_get_isref, 0, 0, 1)
    31353136    ZEND_ARG_INFO(1, variable)
    31363137ZEND_END_ARG_INFO()
     3138#else
     3139static unsigned char arginfo_xcache_get_isref[] = { 1, BYREF_FORCE };
     3140#endif
    31373141
    31383142PHP_FUNCTION(xcache_get_isref)
     
    36573661    if (xc_php_size) {
    36583662        ptr = _php_math_number_format(xc_php_size, 0, '.', ',');
    3659         snprintf(buf, sizeof(buf), "enabled, %s bytes, %d split(s), with %d slots each", ptr, xc_php_hcache.size, xc_php_hentry.size);
     3663        snprintf(buf, sizeof(buf), "enabled, %s bytes, %lu split(s), with %lu slots each", ptr, xc_php_hcache.size, xc_php_hentry.size);
    36603664        php_info_print_table_row(2, "Opcode Cache", buf);
    36613665        efree(ptr);
     
    36663670    if (xc_var_size) {
    36673671        ptr = _php_math_number_format(xc_var_size, 0, '.', ',');
    3668         snprintf(buf, sizeof(buf), "enabled, %s bytes, %d split(s), with %d slots each", ptr, xc_var_hcache.size, xc_var_hentry.size);
     3672        snprintf(buf, sizeof(buf), "enabled, %s bytes, %lu split(s), with %lu slots each", ptr, xc_var_hcache.size, xc_var_hentry.size);
    36693673        php_info_print_table_row(2, "Variable Cache", buf);
    36703674        efree(ptr);
Note: See TracChangeset for help on using the changeset viewer.