Modify

Ticket #207 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

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

phing-lint-interpreter.diff Download (2.4 KB) - added by Markus Fischer <markus@…> 4 years ago.
Add php.command property, have PhpLintTask take advantage of it and provide new interpreter attribute, updated docs.

Change History

Changed 4 years ago by Markus Fischer <markus@…>

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

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>

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.