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

           Summary: When rendering math, TeX output is sent to stderr which
                    ends up in Apache's error log
           Product: MediaWiki
           Version: 1.15-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: hea...@sas.upenn.edu


When TeX is executed by MathRenderer->render() to render math, the
informational messages that TeX prints to stderr end up in Apache's error log
because stderr is not redirected.

In my opinion, this is not the correct behavior, as
 1) These are informational messages, not errors
 2) These messages are written directly to Apache's error log without any time,
date or severity information.

The relevant code is Math.php line 72:

$contents = `$cmd`;

Suggested fix: Alter this line to

$contents = `$cmd 2>/dev/null`;

Could this fix have any unforeseen consequences?


-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to