Ticket #10355

RpcDateTimeHandlerの変数名のスペルミス
Date d'ouverture: 2007-05-07 09:53 Dernière mise à jour: 2007-05-07 09:53

Rapporteur:
(del#11823)
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

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

Modifier

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