Php 无法将SplQueue对象正确存储在ZF2..中的memcache中。。?

Php 无法将SplQueue对象正确存储在ZF2..中的memcache中。。?,php,queue,memcached,Php,Queue,Memcached,我正在使用SplQueue php类创建一个数据队列,并将该队列存储在memcache中: $queue = new \SplQueue(); $queue->enqueue($data); print_r($queue); $this->getServiceLocator()->get('memcached')->setItem('key', $queue); $queue = $this->getServiceLocator()->get('memcach

我正在使用SplQueue php类创建一个数据队列,并将该队列存储在memcache中:

$queue = new \SplQueue();
$queue->enqueue($data);
print_r($queue);
$this->getServiceLocator()->get('memcached')->setItem('key', $queue);
$queue = $this->getServiceLocator()->get('memcached')->getItem('key');
print_r($queue);
最后一个
print\r
给出如下空白结果:

SplQueue Object
(
    [flags:SplDoublyLinkedList:private] => 4
    [dllist:SplDoublyLinkedList:private] => Array
        (
        )

)
但第一个
print\r
按预期给出生成的队列。这段代码在我的本地系统上运行良好,但在生产服务器上产生了上述问题

注:-Memcahced版本在两台机器上相同1.4

任何帮助都将不胜感激

在谷歌搜索时,我发现在低于5.4的PHP版本中,
SplDoublyLinkedList
类的序列化存在问题
SplDoublyLinkedList::serialize
在生产服务器上不起作用(因为服务器运行的是PHP 5.3),除了将PHP版本升级到5.4之外,没有其他解决方案