phingofficial/phing — pull request #158 by llaville (2012-11-11 17:08:55+00:00)
Title: PHP Error when using file parameter on available system task

Hello,

While I've changed my phing build doc script on PHP_CompatInfo, and put the available system task, I found a PHP Error.

First try with :

with -debug option I saw

+Task: available
-calling setter AvailableTask::setResource()
-calling setter AvailableTask::setProperty()
[PHP Error] Undefined property: AvailableTask::$file [line 111 of C:\UwAmp\bin\php\php-5.2.17\PEAR\phing\tasks\system\AvailableTask.php]
[PHP Error] Undefined property: AvailableTask::$file [line 119 of C:\UwAmp\bin\php\php-5.2.17\PEAR\phing\tasks\system\AvailableTask.php]

Then I changed to

And all goes fine. But to use the file parameter I propose this fix (pull request).

Hope it will help
Laurent