Closed
Description
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
Labels
No labels