You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.0 KiB

3 years ago
  1. CHANGELOG
  2. =========
  3. 5.2.0
  4. -----
  5. * added `Process::setOptions()` to set `Process` specific options
  6. * added option `create_new_console` to allow a subprocess to continue
  7. to run after the main script exited, both on Linux and on Windows
  8. 5.1.0
  9. -----
  10. * added `Process::getStartTime()` to retrieve the start time of the process as float
  11. 5.0.0
  12. -----
  13. * removed `Process::inheritEnvironmentVariables()`
  14. * removed `PhpProcess::setPhpBinary()`
  15. * `Process` must be instantiated with a command array, use `Process::fromShellCommandline()` when the command should be parsed by the shell
  16. * removed `Process::setCommandLine()`
  17. 4.4.0
  18. -----
  19. * deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited.
  20. * added `Process::getLastOutputTime()` method
  21. 4.2.0
  22. -----
  23. * added the `Process::fromShellCommandline()` to run commands in a shell wrapper
  24. * deprecated passing a command as string when creating a `Process` instance
  25. * deprecated the `Process::setCommandline()` and the `PhpProcess::setPhpBinary()` methods
  26. * added the `Process::waitUntil()` method to wait for the process only for a
  27. specific output, then continue the normal execution of your application
  28. 4.1.0
  29. -----
  30. * added the `Process::isTtySupported()` method that allows to check for TTY support
  31. * made `PhpExecutableFinder` look for the `PHP_BINARY` env var when searching the php binary
  32. * added the `ProcessSignaledException` class to properly catch signaled process errors
  33. 4.0.0
  34. -----
  35. * environment variables will always be inherited
  36. * added a second `array $env = []` argument to the `start()`, `run()`,
  37. `mustRun()`, and `restart()` methods of the `Process` class
  38. * added a second `array $env = []` argument to the `start()` method of the
  39. `PhpProcess` class
  40. * the `ProcessUtils::escapeArgument()` method has been removed
  41. * the `areEnvironmentVariablesInherited()`, `getOptions()`, and `setOptions()`
  42. methods of the `Process` class have been removed
  43. * support for passing `proc_open()` options has been removed
  44. * removed the `ProcessBuilder` class, use the `Process` class instead
  45. * removed the `getEnhanceWindowsCompatibility()` and `setEnhanceWindowsCompatibility()` methods of the `Process` class
  46. * passing a not existing working directory to the constructor of the `Symfony\Component\Process\Process` class is not
  47. supported anymore
  48. 3.4.0
  49. -----
  50. * deprecated the ProcessBuilder class
  51. * deprecated calling `Process::start()` without setting a valid working directory beforehand (via `setWorkingDirectory()` or constructor)
  52. 3.3.0
  53. -----
  54. * added command line arrays in the `Process` class
  55. * added `$env` argument to `Process::start()`, `run()`, `mustRun()` and `restart()` methods
  56. * deprecated the `ProcessUtils::escapeArgument()` method
  57. * deprecated not inheriting environment variables
  58. * deprecated configuring `proc_open()` options
  59. * deprecated configuring enhanced Windows compatibility
  60. * deprecated configuring enhanced sigchild compatibility
  61. 2.5.0
  62. -----
  63. * added support for PTY mode
  64. * added the convenience method "mustRun"
  65. * deprecation: Process::setStdin() is deprecated in favor of Process::setInput()
  66. * deprecation: Process::getStdin() is deprecated in favor of Process::getInput()
  67. * deprecation: Process::setInput() and ProcessBuilder::setInput() do not accept non-scalar types
  68. 2.4.0
  69. -----
  70. * added the ability to define an idle timeout
  71. 2.3.0
  72. -----
  73. * added ProcessUtils::escapeArgument() to fix the bug in escapeshellarg() function on Windows
  74. * added Process::signal()
  75. * added Process::getPid()
  76. * added support for a TTY mode
  77. 2.2.0
  78. -----
  79. * added ProcessBuilder::setArguments() to reset the arguments on a builder
  80. * added a way to retrieve the standard and error output incrementally
  81. * added Process:restart()
  82. 2.1.0
  83. -----
  84. * added support for non-blocking processes (start(), wait(), isRunning(), stop())
  85. * enhanced Windows compatibility
  86. * added Process::getExitCodeText() that returns a string representation for
  87. the exit code returned by the process
  88. * added ProcessBuilder