https://bugzilla.wikimedia.org/show_bug.cgi?id=55826

--- Comment #9 from MWJames <jamesin.hongkon...@gmail.com> ---
After looking into it, two issue came into play as to way the unit tests didn't
catch the issue.

The first issue was caused by PHP 5.3 (I used and old 5.3.8 to verify the
issue) which handles pass-by-reference for empty arrays differently and
secondly $this->getResult()->setIndexedTagName() (responsible to add '_element'
for XML output) applies internally a check whether getIsRawMode() is true/false
which in case of the current unit test returns false and therefore will not
engage in any array manipulation.

By setting $this->getResult()->setRawMode() in the unit test the error is
caught which means I'll have to adjust the unit test in order to incorporate
the setRawMode() option before fixing the issue which is doing an additional
is_array() check.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to