From 626547e9cfd0e65dd5eb46a2e25a4886e24f6e76 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 24 Apr 2017 01:22:39 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index 66c8756bf7..96d9badaa1 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -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)),