待辦事項 #10355

RpcDateTimeHandlerの変数名のスペルミス
啟用日期: 2007-05-07 09:53 最後更新: 2007-05-07 09:53

回報者:
(del#11823)
負責人:
(無)
類型:
狀態:
開啟
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:

細節

2.0.16a-JPにて、XML-RPCの日付型をパースする処理に変数
名のスペルミスがありました。

class RpcDateTimeHandler extends XmlTagHandler
{
(中略)
function handleCharacterData(&$parser, &$data)
{
$matches = array();
if (!preg_match("/^([0-9]{4})([0-9]{2})([0-9]
{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})$/", $data,
$matches)) {
$parser->setTempValue(time());
} else {
$parser->setTempValue(gmmktime($matches
[4], $matches[5], $meatches[6], $matches[2], $matches
[3], $matches[1])); <<HERE!!
}
}
}

$meatches[6]

$matches[6]

Ticket History (0/0 Histories)

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入