You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
?>