Changeset 960 for trunk/xcache.c
- Timestamp:
- 2012-07-09T10:38:25+02:00 (11 months ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r957 r960 2731 2731 switch (optype) { 2732 2732 case XC_OP_COUNT: 2733 RETURN_LONG( size)2733 RETURN_LONG(caches ? size : 0) 2734 2734 break; 2735 2735 2736 2736 case XC_OP_INFO: 2737 2737 case XC_OP_LIST: 2738 if ( id < 0 || id >= size) {2738 if (!caches || id < 0 || id >= size) { 2739 2739 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cache not exists"); 2740 2740 RETURN_FALSE; … … 2758 2758 int entryslotid, c; 2759 2759 2760 if ( id < 0 || id >= size) {2760 if (!caches || id < 0 || id >= size) { 2761 2761 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cache not exists"); 2762 2762 RETURN_FALSE; … … 2812 2812 2813 2813 #define VAR_DISABLED_WARNING() do { \ 2814 php_error_docref(NULL TSRMLS_CC, E_WARNING, " xcache.var_size is either 0 or too small to enable var data caching"); \2814 php_error_docref(NULL TSRMLS_CC, E_WARNING, "XCache var cache was not initialized properly. Check php log for actual reason"); \ 2815 2815 } while (0) 2816 2816
Note: See TracChangeset
for help on using the changeset viewer.

