This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
library/Zend/Cache/Backend Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class Zend_Cache_Backend_Libmemcached extends Zend_Cache_Backend implements Zend
9696 */
9797 public function __construct (array $ options = array ())
9898 {
99- if (!extension_loaded ('memcached ' ) || session_save_path () !== 'Memcache ' ) {
99+ if (!extension_loaded ('memcached ' ) && session_save_path () !== 'Memcache ' ) {
100100 Zend_Cache::throwException ('The memcached extension must be loaded for using this backend ! ' );
101101 }
102102
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ class Zend_Cache_Backend_Memcached extends Zend_Cache_Backend implements Zend_Ca
119119 */
120120 public function __construct (array $ options = array ())
121121 {
122- if (!extension_loaded ('memcache ' ) || session_save_path () !== 'Memcache ' ) {
122+ if (!extension_loaded ('memcache ' ) && session_save_path () !== 'Memcache ' ) {
123123 Zend_Cache::throwException ('The memcache extension must be loaded for using this backend ! ' );
124124 }
125125 parent ::__construct ($ options );
You can’t perform that action at this time.
0 commit comments