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

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Thu Feb 28 16:55:03 CET 2008


Moreno Feltscher schrieb:
>>  > Warning: preg_match(): No ending delimiter '/' found in
>>  > D:\WEB\TYPO3_42beta2\typo3\cli_dispatch.phpsh on line 57
>>
>>
>> preg_match('/^([A-Z]:)?\\/', $temp_PATH_thisScript)
>>
>>  Odd. I tried to match a \. In the shell I need \\\ (within the regexp) to
>>  match a single \ in the path string:
>>
>>
>>  preg_match('/^([A-Z]:)?\\\/', $temp_PATH_thisScript)
>>
>>  Why do I need three? Any other number raises the mentioned error.
> Can you fix this?

\\\ is correct. Just add one extra \ to your script.

Masi


More information about the TYPO3-team-core mailing list