Ticket #207 (closed enhancement: fixed)
PhpLintTask: optional use a different PHP interpreter
| Reported by: | Markus Fischer <markus@…> | Owned by: | hans |
|---|---|---|---|
| Priority: | low | Milestone: | 2.3.1 |
| Component: | phing-tasks-ext | Version: | 2.3.0 |
| Keywords: | phplint patch | Cc: |
Description
I'm using different PHP interpreters on my system and found the need to specify the <phplint> task which interpreter to use. I'm having interpreter with and without namespace, gc and scalar hinting patches and need to explicitly specify which one to use.
Although Phing itself can be run with a different interpreter easily, the PhpLintTask doesn't take advantage of so I included this also.
I added a new phing default property php.command which is set from the environment PHP_COMMAND.
PhpLintTask upon initialization defaults to the new property but can be overridden with the interpreter-Attribut.
Documentation is updated with the patch too.
Attachments
Change History
Changed 4 years ago by Markus Fischer <markus@…>
-
attachment
phing-lint-interpreter.diff
added
comment:1 Changed 4 years ago by Markus Fischer <markus@…>
I just realized I named the property php.command because the environment variable was named that way, actually I would prefer to also name the property php.interpreter because that is what it really is ...
comment:2 Changed 4 years ago by mrook
- Status changed from new to closed
- Resolution set to fixed
Patch committed in r342, thanks!
comment:3 Changed 3 years ago by hot tube
nice work sweet site thanks =_) <a href=" http://my.mashable.com/hottube ">hot for teacher u tube</a> o)))) <a href=" http://my.mashable.com/ ">sexvideo</a> +))) <a href=" http://my.mashable.com/beasttube ">beast tube horse</a> ")) <a href=" http://my.mashable.com/redtub ">youporn redtube xnxx</a>

Add php.command property, have PhpLintTask take advantage of it and provide new interpreter attribute, updated docs.