+ -
当前位置:首页 → 问答吧 → Zend_Framework update 导致内存溢出

Zend_Framework update 导致内存溢出

时间:2011-05-06

来源:互联网

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in E:\wamp\www\app\models\PurchaseModel.php on line 52

///////////////代码部分/////////////

public function update(){
$base = array(
'description' => 'a'
);
$this->update($base,'id=1');
return;
}


///////////////////
代码在继承Zend_Db_Table的类里面

作者: hxsying   发布时间: 2011-05-06

$db = $this->getAdapter();


$base = array(
'description' => 'a'
);
$db->update('pv_purchase',$base,'id=1');

这样写就没有错 晕了。。

作者: hxsying   发布时间: 2011-05-06