Changeset 960
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r956 r960 7 7 * WIN32: kill invalidate CRT parameters on shutdown 8 8 * fixed: <=PHP_5_2 duplicate error message failed to include file 9 * fixed #283: XCache admin APIs (admin page) cause SEGV if XCache failed to initize 9 10 10 11 2.0.0 2012-04-20 -
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

