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 - PhpExecutable doesn't correctly parse arguments
Summary: PhpExecutable doesn't correctly parse arguments
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-15 20:58 UTC by twifty
Modified: 2016-12-15 20:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.