Modify

Ticket #436 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by extraordinaire

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:2 Changed 2 years ago by anonymous

Thanks for the report!

This should now be fixed in trunk.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.