PHP 脚本中的一般“已杀死”错误
我正在处理一个CRON工作,该工作调用PHP脚本,该脚本使用循环进行大量数据库工作。
当我限制数据集时,它会正确执行,但是当我对整个数据集运行它时,脚本会出错并显示一条消息:
Killed
set_time_limit是 (0),memory_limit是 (-1)
下面是它始终死亡的代码部分:
echo "I'm in _getMemberDemographicAttrs\n";
if (! empty ( $member_id )) {
$query .= ' AND member_id = ' . $member_id;
}
$result = mysql_query ( $query, $this->_db );
if ($result) {
while ( $rule = mysql_fetch_assoc ( $result ) ) {
$rules [] = $rule;
}
if (! empty ( $rules )) {
mysql_free_result ( $result );
echo "I'm leaving _getMemberDemographicAttrs\n";
return $rules;
}
}
输出如下所示:
I'm in _getMemberDemographicAttrs<br/>
I'm leaving _getMemberDemographicAttrs<br/>
I'm in _getMemberDemographicAttrs<br/>
I'm leaving _getMemberDemographicAttrs<br/>
I'm in _getMemberDemographicAttrs<br/>
Killed
我从未见过此通用错误消息,我想知道是什么导致它被杀死?Killed