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:
John Blackbourn 2017-04-24 01:22:39 +00:00
parent 127b1592f7
commit 626547e9cf
1 changed files with 1 additions and 1 deletions

View File

@ -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)),