This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269360

Summary: PhpExecutable doesn't correctly parse arguments
Product: php Reporter: twifty
Component: ProjectAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description twifty 2016-12-15 20:58:40 UTC
Discovered while calling a Symfony backed application.

Take the following example:
new PhpExecutable("/path/to/script action --option")

The options are correctly stripped, but the action remains. Leaving the string "/path/to/script action" being passed to PhpExecutableValidator.validateCommand which causes a popup window with the text "file must be a valid file".

If that popup window actually gave the file name, I could have saved myself the hour I wasted tracking down the problem. In fact, a plain old exception would be a lot easier deal with.