我尝试 confider 一个 php 项目,它给出的错误如下:
[RInvalidCollectionOffsetException, 0]
Invalid Offset '0'
@line 362 in file /xxxxxxxx/public_html/lib/Classes/RCollection.php
Debug Backtrace
#1 preferences.php:358 -- RCollection->offsetGet(...)
#2 config_language.php:40 -- Preferences->create_language_session(...)
#3 common.php:92 -- include(...)
#4 index.php:14 -- require_once(...)
代码是:
public function offsetGet($Offset)
{
if (isset($this->Data[$Offset])) {
return $this->Data[$Offset];
}
else {
throw new RInvalidCollectionOffsetException($Offset);
}
}
有很多功能