phpbb/phpbb3 — pull request #984 by igorw (2012-09-02 22:55:39+00:00)
Title: [ticket/11090] Cron dies with suppressed fatal error

Common.php includes config.php twice, triggering the error handler
to be called (because of suppressed redefined constants). This error
makes the error handler try to log to the database, which the
connection for does not exist yet, leading to a fatal error.

This patch fixes the issue by making sure that the error handler will
only perform logging for errors that occur after common.php has been
included.

Ticket: http://tracker.phpbb.com/browse/PHPBB3-11090