Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Segmentation fault from simple pub/sub - ubuntu 11.04 - PHP 5.3.5-1ubuntu7.8 #244

Closed
@minitru

Description

@minitru

Hey guys... having an odd probem - using a simple pub/sub example the second published message to a subscribed client is causing a segfault. Latest redis/phpredis.. code below:

pub.php

pconnect('127.0.0.1',6379); $redis->publish('chan-3', 'hello, world!'); // send message to channel 3. $redis->publish('chan-3', 'hello, world2!'); // again $redis->close(); ?>

sub.php

pconnect('127.0.0.1',6379); $redis->subscribe(array('chan-3'),'f'); // subscribe to 1 channel ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions