#34662Fatal error 't3lib_lock' does not exist if deprecationLog = 'file'
Description
It seems, that Commit commit:f1fd1b69 introduced a problem in certain conditions:
if the deprecationLog is enabled and set to “file”, each call of t3lib_div::deprecationLog will now result in a
t3lib_div::makeInstance(‘t3lib_lock’, $destination, $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘lockingMode’]); (class.t3lib_div.php line:6032)
But it seems that the class is not yet available if the deprecationLog is called in t3lib/config_default.php
Here is the stack trace:
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class t3lib_lock does not exist' in /var/www/typo3_src/typo3_src-4.5.stable/t3lib/class.t3lib_div.php:5359
Stack trace:
#0 /var/www/typo3_src/typo3_src-4.5.stable/t3lib/class.t3lib_div.php(5359): ReflectionClass->__construct('t3lib_lock')
#1 /var/www/typo3_src/typo3_src-4.5.stable/t3lib/class.t3lib_div.php(6032): t3lib_div::makeInstance('t3lib_lock', '/var/www/...', 'simple')
#2 /var/www/typo3_src/typo3_src-4.5.stable/t3lib/config_default.php(764): t3lib_div::deprecationLog('This TYPO3 inst...')
#3 /var/www/typo3_src/typo3_src-4.5.stable/typo3/sysext/cms/tslib/index_ts.php(128): require('/var/www/typo3_...')
#4 /var/www/typo3_src/typo3_src-4.5.stable/index.php(84): require('/var/www/typo3_...')
#5 {main}
thrown in /var/www/typo3_src/typo3_src-4.5.stable/t3lib/class.t3lib_div.php on line 5359
I didn’t test it with higher versions, but probably the problem will also occur there.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.