Feeds: Remove an incorrect usage of sizeof()
in a helper class used during unit testing of XML element handling.
This also helps tidy up the test output when running PHP 7.2. See #40109 git-svn-id: https://develop.svn.wordpress.org/trunk@40555 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
127b1592f7
commit
626547e9cf
@ -157,7 +157,7 @@ class testXMLParser {
|
||||
}
|
||||
|
||||
function parse($in) {
|
||||
$parse = xml_parse($this->xml, $in, sizeof($in));
|
||||
$parse = xml_parse($this->xml, $in, true);
|
||||
if (!$parse) {
|
||||
trigger_error(sprintf("XML error: %s at line %d",
|
||||
xml_error_string(xml_get_error_code($this->xml)),
|
||||
|
Loading…
Reference in New Issue
Block a user