Project

General

Profile

Bug #57136 » debug-race-condition.diff

Helmut Hummel, 2014-03-21 11:04

View differences:

typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php
* *
* The TYPO3 project - inspiring people to share! *
* */
use TYPO3\CMS\Core\Core\Bootstrap;
/**
* A caching backend which stores cache entries in files, but does not support or
* care about expiry times and tags.
......
* @return void
*/
public function setCache(\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache) {
error_log(Bootstrap::getInstance()->getRequestId().' setCache');
parent::setCache($cache);
if (empty($this->temporaryCacheDirectory)) {
// If no cache directory was given with cacheDirectory
......
*/
protected function createFinalCacheDirectory($finalCacheDirectory) {
try {
error_log(Bootstrap::getInstance()->getRequestId() . ' create ' . $finalCacheDirectory);
\TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep($finalCacheDirectory);
} catch (\RuntimeException $e) {
throw new \TYPO3\CMS\Core\Cache\Exception('The directory "' . $finalCacheDirectory . '" can not be created.', 1303669848, $e);
typo3/sysext/core/Classes/Error/ErrorHandler.php
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Core\Core\Bootstrap;
/**
* Global error handler for TYPO3
*
......
require_once PATH_site . 'typo3/sysext/core/Classes/Exception.php';
require_once PATH_site . 'typo3/sysext/core/Classes/Error/Exception.php';
}
error_log(Bootstrap::getInstance()->getRequestId() . ' exception ');
throw new \TYPO3\CMS\Core\Error\Exception($message, 1);
} else {
switch ($errorLevel) {
typo3/sysext/core/Classes/Utility/GeneralUtility.php
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Core\Core\Bootstrap;
/**
* The legendary "t3lib_div" class - Miscellaneous functions for general purpose.
* Most of the functions do not relate specifically to TYPO3
......
*/
static public function flushDirectory($directory, $keepOriginalDirectory = FALSE) {
$result = FALSE;
error_log(Bootstrap::getInstance()->getRequestId() . ' flush '.$directory);
if (is_dir($directory)) {
$temporaryDirectory = rtrim($directory, '/') . '.' . uniqid('remove') . '/';
if (rename($directory, $temporaryDirectory)) {
(1-1/2)