[TYPO3-core] RFC: Bug #6158: index.php assumes current working directory to be PATH_site

Steffen Müller typo3 at t3node.com
Fri Aug 29 11:04:52 CEST 2008


REMINDER #2

The patch is mandatory when using TYPO3 on Ubuntu 8.04 LTS and could
help to reduce support questions on the installation list.

-- 
cheers,
Steffen

http://www.t3node.com/

On 04.02.2008 23:46 Oliver Hader wrote:
> Hi,
> 
> Oliver Hader schrieb:
>> This is a SVN patch request.
>>
>> Problem:
>> On linked sources the current working directory is set to the linked
>> source and not to the originally called one (as provided in PATH_site).
>> Thus, releative file calls (e.g. loading a HTML template file) will
>> not work anymore ("crashes") and a blank page is shown.
>> This only happens when the following conditions are met:
>> * PHP 5.2.4-xxx (fixed in PHP 5.2.5)
>> * running in CGI mode (e.g. fcgid)
>> * PHP settings cgi.fix_pathinfo enabled
>> * linked source
>>
>> Solution:
>> Check for the conditions above in t3lib/config_default.php and execute
>> a chdir(PATH_site) to get relative file operations working again.
>>
>> Comments:
>> This issue is marked as fixed in PHP 5.2.5 but however some
>> distributions still deliver this bug (e.g. I got this on latest
>> Debian/testing 5.2.4-2+b1).
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=6158
>>
>> Branch: TYPO3_4-1 & Trunk
> 
> I had a logical bug in the first version. PATH_site isn't a good choice
> in the back-end... ;-) - New version is attached.
> 
> olly
> 



More information about the TYPO3-team-core mailing list