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

Bug #1320528 reported by Dmitriy Sintsov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php-redis (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

 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 <email address hidden>
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.

summary: - php5-redis does not pass testa and throws exception in MediaWiki
+ php5-redis does not pass tests and throws exception in MediaWiki
1.24wmf4
penalvch (penalvch)
affects: linux-lts-trusty (Ubuntu) → php-redis (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php-redis (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.