equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Memory |
16 * @package Zend_Memory |
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: Memory.php 20804 2010-02-01 15:49:16Z alexander $ |
19 * @version $Id: Memory.php 24593 2012-01-05 20:35:02Z matthew $ |
20 */ |
20 */ |
21 |
21 |
22 /** Zend_Memory_Exception */ |
22 /** Zend_Memory_Exception */ |
23 require_once 'Zend/Memory/Manager.php'; |
23 require_once 'Zend/Memory/Manager.php'; |
24 |
24 |
32 require_once 'Zend/Cache.php'; |
32 require_once 'Zend/Cache.php'; |
33 |
33 |
34 /** |
34 /** |
35 * @category Zend |
35 * @category Zend |
36 * @package Zend_Memory |
36 * @package Zend_Memory |
37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
37 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
39 */ |
39 */ |
40 class Zend_Memory |
40 class Zend_Memory |
41 { |
41 { |
42 /** |
42 /** |
54 } |
54 } |
55 |
55 |
56 // Look through available backendsand |
56 // Look through available backendsand |
57 // (that allows to specify it in any case) |
57 // (that allows to specify it in any case) |
58 $backendIsFound = false; |
58 $backendIsFound = false; |
59 foreach (Zend_Cache::$availableBackends as $zendCacheBackend) { |
59 foreach (Zend_Cache::$standardBackends as $zendCacheBackend) { |
60 if (strcasecmp($backend, $zendCacheBackend) == 0) { |
60 if (strcasecmp($backend, $zendCacheBackend) == 0) { |
61 $backend = $zendCacheBackend; |
61 $backend = $zendCacheBackend; |
62 $backendIsFound = true; |
62 $backendIsFound = true; |
63 break; |
63 break; |
64 } |
64 } |