Skip to content

Commit

Permalink
Doble slashes completly removed
Browse files Browse the repository at this point in the history
  • Loading branch information
TamiasSibiricus committed Jul 13, 2014
1 parent 6eaa4f9 commit 540e861
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cache/Engine/MemcachedEngine.php
Expand Up @@ -109,7 +109,7 @@ public function init(array $config = []) {
'json' => \Memcached::SERIALIZER_JSON,
'php' => \Memcached::SERIALIZER_PHP
];
if (defined('\\Memcached::HAVE_MSGPACK') && \Memcached::HAVE_MSGPACK) {
if (defined('Memcached::HAVE_MSGPACK') && \Memcached::HAVE_MSGPACK) {
$this->_serializers['msgpack'] = \Memcached::SERIALIZER_MSGPACK;
}

Expand Down Expand Up @@ -177,7 +177,7 @@ protected function _setOptions() {
);
}

if ($serializer !== 'php' && !constant('\\Memcached::HAVE_' . strtoupper($serializer))) {
if ($serializer !== 'php' && !constant('Memcached::HAVE_' . strtoupper($serializer))) {
throw new Error\Exception(
sprintf('Memcached extension is not compiled with %s support', $serializer)
);
Expand All @@ -186,7 +186,7 @@ protected function _setOptions() {
$this->_Memcached->setOption(\Memcached::OPT_SERIALIZER, $this->_serializers[$serializer]);

// Check for Amazon ElastiCache instance
if (defined('\\Memcached::OPT_CLIENT_MODE') && defined('\\Memcached::DYNAMIC_CLIENT_MODE')) {
if (defined('Memcached::OPT_CLIENT_MODE') && defined('Memcached::DYNAMIC_CLIENT_MODE')) {
$this->_Memcached->setOption(\Memcached::OPT_CLIENT_MODE, \Memcached::DYNAMIC_CLIENT_MODE);
}

Expand Down

0 comments on commit 540e861

Please sign in to comment.