Zend框架Zend / Db / Select.php中的未定义类常量''

时间:2013-04-17 08:44:30

标签: database zend-framework fatal-error class-constants isnullorempty

我的Apache日志中有一个srange错误:

PHP致命错误:未定义的类常量''

这是de library(Zend framework 1.11)library / Zend / Db / Select.php的第814行

看一下代码:

  

if ($type == self::FROM) {
// append this from after the last from joinType
$tmpFromParts = $this->_parts[self::FROM];
$this->_parts[self::FROM] = array();
// move all the froms onto the stack
while ($tmpFromParts) {
$currentCorrelationName = key($tmpFromParts);
if ($tmpFromParts[$currentCorrelationName]['joinType'] != self::FROM) {
break;
}
$lastFromCorrelationName = $currentCorrelationName;
$this->_parts[self::FROM][$currentCorrelationName] = array_shift($tmpFromParts);
} }

这很奇怪,因为未定义的常量是空的。 这种致命错误有时会出现,但不是每次加载页面都会出现。 它是zend框架的发布BUG吗?

0 个答案:

没有答案