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

Steffen Müller typo3 at t3node.com
Fri May 9 19:19:46 CEST 2008


REMINDER #1

Unfortunately, the new Ubuntu 8.04 LTS ships PHP 5.2.4

Will this be backported to 4.1.x?

-- 
cheers,
Steffen

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