Skip to content

Releases: amphp/process

2.1.0

Choose a tag to compare

@trowski trowski released this 31 May 15:15
v2.1.0
583959d

What's Changed

  • Added getSignalName() function which returns the signal constant name, if defined, from a signal number. Requires ext-pcntl, otherwise null is always returned.

Full Changelog: v2.0.3...v2.1.0

1.1.9

Choose a tag to compare

@trowski trowski released this 13 Dec 17:52
v1.1.9
55b837d

What's Changed

  • Fixed potential hang on Windows when a process crashes introduced in 1.1.8.

Full Changelog: v1.1.8...v1.1.9

1.1.8

Choose a tag to compare

@trowski trowski released this 13 Dec 17:51
v1.1.8
187cdad

What's Changed

  • Fixed potential exception on Windows if a process crashes.

Full Changelog: v1.1.7...v1.1.8

2.0.3

Choose a tag to compare

@trowski trowski released this 19 Apr 03:26
v2.0.3
52e08c0

What's Changed

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

Full Changelog: v2.0.2...v2.0.3

1.1.7

Choose a tag to compare

@trowski trowski released this 19 Apr 03:04
v1.1.7
1949d85

What's Changed

  • Fix loop getting stuck when launching a process fails on Windows by @MatmaRex in #72

New Contributors

Full Changelog: v1.1.6...v1.1.7

1.1.6

Choose a tag to compare

@kelunik kelunik released this 21 Mar 19:28
v1.1.6
2cd3805

What's Changed

New Contributors

Full Changelog: v1.1.5...v1.1.6

1.1.5

Choose a tag to compare

@kelunik kelunik released this 24 Feb 21:10
v1.1.5
04b4517

What's Changed

  • Fix posix_kill crashing / killing other programs on null by @gerardroche in #68

New Contributors

Full Changelog: v1.1.4...v1.1.5

2.0.2

Choose a tag to compare

@trowski trowski released this 17 Feb 04:24
v2.0.2
a79dc87

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: v2.0.1...v2.0.2

2.0.1

Choose a tag to compare

@trowski trowski released this 31 Jul 17:56
v2.0.1
a65d3bc

What's Changed

  • Fixed error handling if the started process fails immediately.

Full Changelog: v2.0.0...v2.0.1

2.0.0

Choose a tag to compare

@kelunik kelunik released this 09 Jan 21:43
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)