Development

Changeset 8847 for tags/RELEASE_1_1_0_RC1

You must first sign up to be able to contribute.

Show
Ignore:
Timestamp:
05/07/08 20:03:54 (4 months ago)
Author:
fabien
Message:

added an exception in sfXCacheCache when xcache.var_size is 0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/RELEASE_1_1_0_RC1/lib/cache/sfXCacheCache.class.php

    r7605 r8847  
    3535    { 
    3636      throw new sfInitializationException('You must have XCache installed and enabled to use sfXCacheCache class.'); 
     37    } 
     38 
     39    if (!ini_get('xcache.var_size')) 
     40    { 
     41      throw new sfInitializationException('You must set the "xcache.var_size" variable to a value greater than 0 to use sfXCacheCache class.'); 
    3742    } 
    3843  }