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

Oliver Hader oh at inpublica.de
Mon Feb 4 19:15:22 CET 2008


Hi Masi,

Martin Kutschker schrieb:
> 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)
> 
> Which versions are affected? Yoeú check for (<= 5.2.4 && < 5.2.5). Why 
> don't you use (= 5.2.4)?

I check for (5.2.4 <= version && version < 5.2.5). The reason is, that 
subversion are not recognized correctly.
Example: version_compare('5.2.4', '5.2.4-2+b1', '=') returns false

olly
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list