Bug #16335 ยป 3819_v2.diff
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
$retVal = $_SERVER[$getEnvName];
|
||
break;
|
||
case 'TYPO3_DOCUMENT_ROOT':
|
||
// Get the web root (it is not the root of the TYPO3 installation)
|
||
// The absolute path of the script can be calculated with TYPO3_DOCUMENT_ROOT + SCRIPT_FILENAME
|
||
// Some CGI-versions (LA13CGI) and mod-rewrite rules on MODULE versions will deliver a 'wrong' DOCUMENT_ROOT (according to our description). Further various aliases/mod_rewrite rules can disturb this as well.
|
||
// Therefore the DOCUMENT_ROOT is now always calculated as the SCRIPT_FILENAME minus the end part shared with SCRIPT_NAME.
|
||
$SFN = self::getIndpEnv('SCRIPT_FILENAME');
|
t3lib/class.t3lib_fullsearch.php (working copy) | ||
---|---|---|
function makeValueList($fN, $fV, $conf, $table, $splitString) {
|
||
$fieldSetup = $conf;
|
||
if ($fieldSetup['type'] == 'files') {
|
||
$d = dir(t3lib_div::getIndpEnv(TYPO3_DOCUMENT_ROOT).'/'.$fieldSetup['uploadfolder']);
|
||
$d = dir(PATH_site . $fieldSetup['uploadfolder']);
|
||
while (false !== ($entry = $d->read())) {
|
||
if ($entry == '.' || $entry == '..') {
|
||
continue;
|
t3lib/class.t3lib_querygenerator.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
}
|
||
$d = dir(t3lib_div::getIndpEnv(TYPO3_DOCUMENT_ROOT).'/'.$fieldSetup['uploadfolder']);
|
||
$d = dir(PATH_site . $fieldSetup['uploadfolder']);
|
||
while (false !== ($entry=$d->read())) {
|
||
if ($entry=='.' || $entry=='..') {
|
||
continue;
|
tests/t3lib/cache/backend/t3lib_cache_backend_filebackendTest.php (working copy) | ||
---|---|---|
$mockCache->expects($this->atLeastOnce())->method('getIdentifier')->will($this->returnValue('UnitTestCache'));
|
||
$backend = $this->getMock('t3lib_cache_backend_FileBackend', array('isCacheFileExpired'), array(), '', FALSE);
|
||
$fullPathToCacheFile = t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') . '/typo3temp/cache/UnitTestCache/ExpiredEntry';
|
||
$fullPathToCacheFile = PATH_site . 'typo3temp/cache/UnitTestCache/ExpiredEntry';
|
||
$backend->expects($this->once())->method('isCacheFileExpired')->with($fullPathToCacheFile)->will($this->returnValue(TRUE));
|
||
$backend->setCache($mockCache);
|
||