[Pkg-mediawiki-devel] mediawiki_1.19.1-2~exp2_i386.changes ACCEPTED into experimental

Platonides platonides at gmail.com
Thu Aug 9 10:37:27 UTC 2012

On Thu, Aug 9, 2012 at 9:31 AM, Thorsten Glaser <t.glaser at tarent.de> wrote:
>> - suppress_warnings.patch: Wrong by the addition of that
>> $wf__warnings_suppressed variable
> Uhm, that one’s the point of the exercise, namely to have
> a way to signal to the FusionForge error handler that the
> MW code is currently in a “sloppy” block and thus errors
> should be temporarily discarded. (Otherwise, they’ll pop
> up on the website by means of an HTML injector.)
> bye,
> //mirabilos

MediaForge is using set_error_handler() ? That would explain your
problems, given that
set_error_handler() ignores the value of error_reporting().

I think you should just perform an early exit if error_reporting()
doesn't show the error, like the example of
http://www.php.net/manual/en/function.set-error-handler.php ie.
if (!(error_reporting() & $errno)) { return; }

More information about the Pkg-mediawiki-devel mailing list