Project

General

Profile

Bug #17535 » 0006158.patch

Administrator Admin, 2008-02-04 14:45

View differences:

t3lib/config_default.php (Arbeitskopie)
if (!defined ('PATH_typo3conf')) die ('The configuration path was not properly defined!');
/**
* Fixes PHP bug #42587 on PHP 5.2.4-5.2.4-xxx which occours on symlinked resources and php setting cgi.fix_pathinfo enabled.
* @see http://bugs.typo3.org/view.php?id=6158
* @see http://bugs.php.net/bug.php?id=42587
* @see http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.333&r2=1.334
*/
if (version_compare('5.2.4', phpversion(), '<=') && version_compare(phpversion(), '5.2.5', '<') && ini_get('cgi.fix_pathinfo')) {
$currentDirectory = getcwd();
if ($currentDirectory!==false && $currentDirectory!=substr(PATH_site, 0, -1)) {
chdir(PATH_site);
}
}
$TYPO3_CONF_VARS = Array(
'GFX' => array( // Configuration of the image processing features in TYPO3. 'IM' and 'GD' are short for ImageMagick and GD library respectively.
'image_processing' => 1, // Boolean. Enables image processing features. Disabling this means NO image processing with either GD or IM!
(2-2/3)