Skip to content

2.0.0

Compare
Choose a tag to compare
@kelunik kelunik released this 09 Jan 21:43
· 14 commits to 2.x since this release
v2.0.0
9c9247f

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)