[TYPO3-core] RFC: Bug / Feature #5838: Get cli_dispatch.phpsh to work on windows platforms

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Oct 29 12:13:47 CET 2007


Dmitry Dulepov [typo3] schrieb:
> Hi!
> 
> Martin Kutschker wrote:
>>> if (stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin'))) {
>>>     $temp_CURRENT_DIR = $_SERVER['PWD'].'/';
>>> }
>>
>> AFAIK $_SERVER['PWD'] is not set on Windows. So all you can do is to 
>> avoid the die().
>>
>> if (stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin'))) {
>>   if (preg_match('/^([A-Z]:)?\\'/, $temp_PATH_thisScript)) {
>>     die('ERROR: Relative paths are not supported on Windows. Try to 
>> run the script with its absolute path.'.chr(10).chr(10));
>>   }
> 
> You still have getcwd() on Windows.

True, but IIRC there was another issue with it. I'll check again.

Masi


More information about the TYPO3-team-core mailing list