[TYPO3-core] RFC: Bug / Feature #5838: Get cli_dispatch.phpsh to work on windows platforms
Dmitry Dulepov [typo3]
dmitry at typo3.org
Mon Oct 29 11:58:35 CET 2007
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.
--
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
More information about the TYPO3-team-core
mailing list