phingofficial/phing — pull request #184 by llaville (2013-01-10 18:05:07+00:00)
Title: Fix fatal error on Phar task (and more)

When the metadata is missing (that is possible, because its optional with phar php extension), we got a FATAL error.

Fatal error: Call to a member function toArray() on a non-object
in phing\tasks\ext\phar\PharPackageTask.php on line 352

You can reproduce this issue with this phing test file

I've also introduce some code clean-up (whitespaces), added some phpdoc descriptions missing, prevent error for PHP 5.2 users (check extension loaded)

And at least fix the fatal error.

- Laurent