Ticket #201 (closed enhancement: fixed)

Opened 7 months ago

Last modified 6 months ago

Improve Phing's ability to work as an "embedded" process

Reported by: hans Assigned to: hans
Priority: major Milestone: 2.3.1
Component: phing-core Version: 2.3.0
Keywords: Cc:

Description (Last modified by hans)

Currently Phing does some things that make it impossible to invoke it within other applications. For example:

  1. Phing currently calls exit() in its shutdown() method.
  2. The phing.php script does a bit more setup/teardown than it should.
  3. Exceptions are being printed to STDERR by Phing class currently instead of bubbling up to calling phing.php script.
  4. Resource paths are only resolved relative to include_path, which shouldn't have to include the phing.home dir.
  5. INI settings that Phing changes are not restored in shutdown phase.
  6. Trailing spaces may prevent inclusion in web apps ("output already started") errors

Attachments

Change History

12/20/07 01:28:50 changed by hans

  • description changed.

12/20/07 03:00:36 changed by hans

(In [322]) Refs #201 - (IN PROGRESS!) Checking in in-progress work to improve Phing's ability to be embedded in other applications. ERROR HANDLING HAS NOT BEEN FULLY TESTED WITH THIS CHANGESET.

12/20/07 15:13:20 changed by hans

(In [323]) Refs #201 - Added improved support for arg parsing in Phing::execute() as well as better error handling between phing.php CLI script and Phing class.

12/20/07 15:14:40 changed by hans

  • description changed.

12/20/07 15:16:14 changed by hans

  • description changed.

12/20/07 15:44:07 changed by hans

  • status changed from new to assigned.
  • description changed.

12/20/07 15:45:00 changed by hans

(In [325]) Refs #201 - Removed closing ?> from class files.

12/20/07 16:02:28 changed by hans

(In [326]) Refs #201 - Fixing argument parsing from bug introduced in [323]

12/20/07 16:05:46 changed by hans

(In [327]) Refs #201 - Fixing another (!) argument parsing bug introduced in [326]

12/20/07 16:05:47 changed by hans

(In [327]) Refs #201 - Fixing another (!) argument parsing bug introduced in [326]

12/27/07 22:01:10 changed by hans

(In [330]) Refs #201 - Fixing support for additional properties

12/27/07 22:01:11 changed by hans

(In [330]) Refs #201 - Fixing support for additional properties

12/27/07 22:04:38 changed by hans

(In [331]) Refs #201 - Changing Phing::start() API to accept array of properties instead of Properties object.

01/04/08 14:04:53 changed by hans

  • status changed from assigned to closed.
  • resolution set to fixed.

Am closing. As of r331, this system is working very well embedded within other PHP scripts. The fact that all errors bubble through as exceptions and no exit() is performed by Phing class, is a definite improvement.


Add/Change #201 (Improve Phing's ability to work as an "embedded" process)




Action