Distinguish redactions from the string "REDACTED" in formatRedactedTrace
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 25 Oct 2013 14:57:11 +0000 (10:57 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 25 Oct 2013 15:42:27 +0000 (11:42 -0400)
commit63b2441d62f8a2e5805ab444413dec298c11356a
tree7d9eeba17843ff6caeffc488ba5fba41e52b3091
parent08e84030d3829c1bf757aef8d7e83de02659e5af
Distinguish redactions from the string "REDACTED" in formatRedactedTrace

In the output of MWExceptionHandler::formatRedactedTrace, it is not
possible to determine (without checking the configuration) whether arg 0
in "foo('REDACTED')" was redacted or was merely passed the string
"REDACTED".

This patch changes redaction to instead output "foo(REDACTED)" in the
case of redaction. This parallels the situation with arrays and objects,
where for example "foo(Array)" was passed an array while "foo('Array')"
was passed the string "Array".

Change-Id: Ia2a761687c69b630afa3ccd8668b06b28e3ecdd3
includes/Exception.php