Currently Phing does some things that make it impossible to invoke it within other applications. For example:
- Phing currently calls exit() in its shutdown() method.
- The phing.php script does a bit more setup/teardown than it should.
- Exceptions are being printed to STDERR by Phing class currently instead of bubbling up to calling phing.php script.
- Resource paths are only resolved relative to include_path, which shouldn't have to include the phing.home dir.
- INI settings that Phing changes are not restored in shutdown phase.
- Trailing spaces may prevent inclusion in web apps ("output already started") errors