2.0.0
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 ofProcess::start()
Process::start()
is now static instead of an instance methodProcess::start()
no longer returns the PID, useProcess::getPid()
Process::kill()
no longer causes an exception to be thrown fromProcess::join()
Process::getEnv()
has been renamed toProcess::getEnvironment()
- Improved handling if the
Process
object is destructed, but the process streams (STDIN, STDOUT, STDERR) are still used - Renamed
escapeArguments
toescapeArgument
- 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()
insidekill()
to avoid suspensions in destructors - Added an optional
Cancellation
parameter toProcess::join()
- Fixed ended processes sometimes leaving zombie processes on *nix systems (requires
ext-pcntl
, an optional dependency)