Amphp Process Versions Save

An async process dispatcher for Amp.

v2.0.3

4 weeks ago

What's Changed

  • Make implicit nullable types explicit to avoid deprecation notice in PHP 8.4.

Full Changelog: https://github.com/amphp/process/compare/v2.0.2...v2.0.3

v1.1.7

4 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/amphp/process/compare/v1.1.6...v1.1.7

v1.1.6

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/amphp/process/compare/v1.1.5...v1.1.6

v1.1.5

2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/amphp/process/compare/v1.1.4...v1.1.5

v2.0.2

3 months ago

What's Changed

  • Changed waiting for children during shutdown to be synchronous to ensure all children are properly cleaned up. This should avoid zombie processes left when running within an SAPI such as PHP-FPM.
  • Fixed UnhandledFutureError being thrown to event loop if reading the process exit code fails.

Full Changelog: https://github.com/amphp/process/compare/v2.0.1...v2.0.2

v2.0.1

9 months ago

What's Changed

  • Fixed error handling if the started process fails immediately.

Full Changelog: https://github.com/amphp/process/compare/v2.0.0...v2.0.1

v2.0.0

1 year ago

Stable release compatible with AMPHP v3 and fibers! 🎉

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • Process::__construct() is now private in favor of Process::start()
  • Process::start() is now static instead of an instance method
  • Process::start()no longer returns the PID, use Process::getPid()
  • Process::kill() no longer causes an exception to be thrown from Process::join()
  • Process::getEnv() has been renamed to Process::getEnvironment()
  • Improved handling if the Process object is destructed, but the process streams (STDIN, STDOUT, STDERR) are still used
  • Renamed escapeArguments to escapeArgument
  • Removed custom stream implementations
  • Removed StatusError
  • Fixed and improved wrapper copy if running inside of PHARs on Windows
  • Removed nullability of Process::getWorkingDirectory()
  • Avoid calling join() inside kill() to avoid suspensions in destructors
  • Added an optional Cancellation parameter to Process::join()
  • Fixed ended processes sometimes leaving zombie processes on *nix systems (requires ext-pcntl, an optional dependency)

v2.0.0-beta.7

1 year ago
  • Add compatibility with Revolt v1.x

v2.0.0-beta.6

1 year ago
  • Added an optional Cancellation parameter to Process::join().

v2.0.0-beta.5

1 year ago
  • Fixed shutdown behavior, which could cause an InvalidCallbackError