Author: healyk
Description:
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
- These are informational messages, not errors
- 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?
Version: unspecified
Severity: minor