[TYPO3-core] RFC #14117: RuntimeException thrown within the exception handler when wrong database credentials

Dmitry Dulepov dmitry.dulepov at gmail.com
Thu Apr 15 10:46:38 CEST 2010


Hi!

Patrick Broens wrote:
> When the database credentials are wrong, a RuntimeException is thrown in
> class t3lib_db, function connectDB(). The exception handler itself tries
> to connect to the database as well, in
> t3lib_error_AbstractExceptionHandler function writeLogEntries(), using
> this same function connectDB(), for storage in the devlog and sys_log
> table. This causes recurring RuntimeExceptions, which leads to a Fatal
> error: Exception thrown without a stack frame in Unknown on line 0

Good finding!

> Solution:
> Wrap the part in t3lib_error_AbstractExceptionHandler >
> writeLogEntries() which handles the database actions in a try/catch
> block, where the catch is simply empty.

+1 by reading (very clean solution).

-- 
Dmitry Dulepov
TYPO3 expert / TYPO3 security team member
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-team-core mailing list