https://bugzilla.wikimedia.org/show_bug.cgi?id=35950
Web browser: ---
Bug #: 35950
Summary: Replacing maintenance/Maintenance.php's STDOUT by
print
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: enhancement
Priority: Unprioritized
Component: Maintenance scripts
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
The current use of STDOUT in the output functions of
core/maintenance/Maintenance.php is problematic for PHPUnit testing, as we
cannot meaningfully rewire it without causing much trouble.
For the cli sapi, Maintenance currently uses STDOUT, for other sapis, it uses
print.
If we'd change STDOUT to prints regardless of the sapi, this would solve the
problems for testing. And by what I have seen from the maintenance code, this
should not cause problems. ... But I am just a
newbie :D
Are there any reasons to stick to STDOUT, or corner cases that would require
STDOUT?
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l