Modify

Ticket #183 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Undefined variable in PhingTask.php

Reported by: Oz Solomon Owned by: hans
Priority: low Milestone: 2.3.1
Component: phing-core Version: 2.3.0
Keywords: Cc:

Description

Line 162 of PhingTask.php is

$buildFailed = false;

That line needs to move to the beginning of the processFile() function (line 201).

As it currently stands, when you reach this line at the end of processFile()

if ($this->haltOnFailure && $buildFailed) {

If there was no exception, then $buildFailed is undefined.

Attachments

Change History

comment:1 Changed 4 years ago by hans

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

Wow .. thank you again, yes. This is fixed in r303 (and r304, trunk).

P.S. Do you want an SVN account to help fix these issues as you find them? Please send a note to the dev list if you would like an account.

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.