Skip to content

Commit

Permalink
[jan] Check for both the memcache and memcached extensions in test sc…
Browse files Browse the repository at this point in the history
…ript (Bug #14691).
  • Loading branch information
yunosh committed Sep 21, 2017
1 parent 58e7f6c commit a0a0825
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions horde/docs/CHANGES
Expand Up @@ -2,6 +2,8 @@
v5.2.18-git
-----------

[jan] Check for both the memcache and memcached extensions in test script (Bug
#14691).


-------
Expand Down
13 changes: 11 additions & 2 deletions horde/lib/Test.php
Expand Up @@ -143,8 +143,9 @@ class Horde_Test
'error' => 'If you want to take full advantage of Horde\'s localization features and character set support, you will need the mbstring extension. Compile PHP with <code>--enable-mbstring</code> to activate the extension.'
),
'memcache' => array(
'descrip' => 'memcached Support (memcache) (PECL extension)',
'error' => 'The memcache PECL extension is only needed if you are using a memcached server for caching or sessions. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.'
'descrip' => 'Memcached Support (PECL extension)',
'error' => 'The memcache(d) PECL extension is only needed if you are using a Memcached server for caching or sessions. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.',
'function' => '_checkMemcache'
),
'mongo' => array(
'descrip' => 'MongoDB support (PECL extension)',
Expand Down Expand Up @@ -535,6 +536,14 @@ protected function _checkMongo()
return true;
}

/**
*/
protected function _checkMemcache()
{
return extension_loaded('memcached') ||
extension_loaded('memcache');
}

/**
* Checks the list of PHP settings.
*
Expand Down
4 changes: 2 additions & 2 deletions horde/package.xml
Expand Up @@ -39,7 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl">LGPL-2</license>
<notes>
*
* [jan] Check for both the memcache and memcached extensions in test script (Bug #14691).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -4202,7 +4202,7 @@
<date>2017-09-19</date>
<license uri="http://www.horde.org/licenses/lgpl">LGPL-2</license>
<notes>
*
* [jan] Check for both the memcache and memcached extensions in test script (Bug #14691).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit a0a0825

Please sign in to comment.