Public bug reported:

 www-data@ks-3:/var/www/mwfarm/redis-test$ redis-server --version
Redis server v=2.8.4 sha=00000000:0 malloc=jemalloc-3.4.1 bits=64 
build=a44a05d76f06a5d9

Trying to run official test from cloned git repository
https://github.com/nicolasff/phpredis

www-data@ks-3:/var/www/mwfarm/redis-test$ php TestRedis.php
Note: these tests might take up to a minute. Don't worry :-)
...PHP Fatal error:  Call to undefined method Redis::pubsub() in 
/var/www/mwfarm/redis-test/TestRedis.php on line 85
www-data@ks-3:/var/www/mwfarm/redis-test$

The pubsub() test is supposed to be skipped
   // Run some simple tests against the PUBSUB command.  This is problematic, 
as we
    // can't be sure what's going on in the instance, but we can do some things.
    public function testPubSub() {
        // Only available since 2.8.0
        if(version_compare($this->version, "2.8.0", "lt")) {
            $this->markTestSkipped();
            return;
        }

        // PUBSUB CHANNELS ...
        $result = $this->redis->pubsub("channels", "*");

however it fails.

dpkg -s php5-redis
Package: php5-redis
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 351
Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
Architecture: amd64
Source: php-redis
Version: 2.2.4-1build2
Depends: libc6 (>= 2.14), phpapi-20121212
Suggests: redis-server
Conffiles:
 /etc/php5/mods-available/redis.ini e9ee56ccb1ac17cef91a51375dc24947

When enabled in MediaWiki 1.24wmf4 (which is supposed to fully support redis) 
it fails with
[70f80411] 2014-05-17 17:39:35: Fatal exception of type MWException
## Shared memory settings
'wgObjectCaches' => array( 'default' =>
        array('redis' =>
                array(
                        'class' => 'RedisBagOStuff',
                        'servers' => array( '127.0.0.1:6379' ),
                        'persistent' => true
                )
        )
),
'wgMainCacheType' => array( 'default' => 'redis' ),

The site is a farm which uses wgConf.
The site is functional and works well with php5-apcu.

** Affects: linux-lts-trusty (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- php5-redis does not pass testa and throws exception in MediaWiki 1.24wmf4
+ php5-redis does not pass tests and throws exception in MediaWiki 1.24wmf4

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320528

Title:
  php5-redis does not pass tests and throws exception in MediaWiki
  1.24wmf4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1320528/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to