LIBXML_DOTTED_VERSION

xml_parse したら、少し変だったので修正する。


php -i
.
.
.
XML Support => active
XML Namespace Support => active
libxml2 Version => 2.7.1
.
.
.


/**
* XML_Parser::_parseString()
*
* @param string $data data
* @param bool $eof end-of-file flag
*
* @return bool
* @access private
* @see parseString()
**/
function _parseString($data, $eof = false)
{
if(LIBXML_DOTTED_VERSION == '2.7.0' ||
LIBXML_DOTTED_VERSION == '2.7.1' ||
LIBXML_DOTTED_VERSION == '2.7.2'
) {
$data = str_replace('<', '<', $data);
$data = str_replace('>', '>', $data);
$data = str_replace('&', '&', $data);
}
return xml_parse($this->parser, $data, $eof);
}