任何人都有任何想法......这个函数被调用了大约 15 个地方,每次它遇到它似乎都是问题,它通过函数但序列化长度为:
echo "序列化长度:" . strlen(序列化($this->_items));
出来是大约8000长。
public function getItemsCollection($useCache = true)
{
if (is_null($this->_items)) {
$this->_items = Mage::getModel('sales/quote_item')->getCollection()
->addFieldToFilter("quote_id", $this->getId())
;
#$this->_items->setQuote($this);
}
echo "Length serialized: " . strlen(serialize($this->_items));
exit;
return $this->_items;
}