WordPress.org

Make WordPress Core

Changeset 40555


Ignore:
Timestamp:
04/24/2017 01:22:39 AM (14 months ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r39626 r40555  
    158158
    159159    function parse($in) {
    160         $parse = xml_parse($this->xml, $in, sizeof($in));
     160        $parse = xml_parse($this->xml, $in, true);
    161161        if (!$parse) {
    162162            trigger_error(sprintf("XML error: %s at line %d",
Note: See TracChangeset for help on using the changeset viewer.