Modify ↓
Ticket #436 (closed defect: fixed)
Windows phing.bat can't handle PHP paths with spaces
| Reported by: | pekka@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4.1 |
| Component: | phing-core | Version: | 2.4.0 |
| Keywords: | Cc: |
Description
bin/phing.bat will fail when the path to the PHP interpreter contains a space (e.g. "C:\Program Files\XAMPP\php\bin", phing.bat's call to the interpreter fails as a syntax error.
It could be sorted by surrounding the PHP_COMMAND variable in line 37 of phing.bat, from
%PHP_COMMAND% -d html_errors=off -qC "%PHING_HOME%\bin\phing.php" %1 %2 %3 %4 %5 %6 %7 %8 %9
to:
"%PHP_COMMAND%" -d html_errors=off -qC "%PHING_HOME%\bin\phing.php" %1 %2 %3 %4 %5 %6 %7 %8 %9
By the way, excellent idea to allow anonymous tickets - a HUGE motivation to actually post bugs here.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

(In [710]) Fixes #436 paths containing spaces