File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11## [ Unreleased]
22
3+ ## [ 1.4.2] - 2020-06-04
4+ * Fixed: ignore SIGINTs to let the restarted process handle them.
5+
36## [ 1.4.1] - 2020-03-01
47 * Fixed: restart fails if an ini file is empty.
58
5760 * Break: the following class was renamed:
5861 - ` Composer\XdebugHandler ` -> ` Composer\XdebugHandler\XdebugHandler `
5962
60- [ Unreleased ] : https://github.com/composer/xdebug-handler/compare/1.4.1...HEAD
63+ [ Unreleased ] : https://github.com/composer/xdebug-handler/compare/1.4.2...HEAD
64+ [ 1.4.2 ] : https://github.com/composer/xdebug-handler/compare/1.4.1...1.4.2
6165[ 1.4.1 ] : https://github.com/composer/xdebug-handler/compare/1.4.0...1.4.1
6266[ 1.4.0 ] : https://github.com/composer/xdebug-handler/compare/1.3.3...1.4.0
6367[ 1.3.3 ] : https://github.com/composer/xdebug-handler/compare/1.3.2...1.3.3
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ There are a few things to be aware of when running inside a restarted process.
7575* Extensions set on the command-line will not be loaded.
7676* Ini file locations will be reported as per the restart - see [ getAllIniFiles()] ( #getallinifiles ) .
7777* Php sub-processes may be loaded with Xdebug enabled - see [ Process configuration] ( #process-configuration ) .
78+ * On Windows ` sapi_windows_set_ctrl_handler ` handlers will not receive CTRL events.
7879
7980### Helper methods
8081These static methods provide information from the current process, regardless of whether it has been restarted or not.
Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ protected function restart($command)
256256 */
257257 private function doRestart ($ command )
258258 {
259- // ignore SIGINTs here so the child process can receive and handle them
259+ // Ignore SIGINTs here so the child process can handle them. To replicate this
260+ // on Windows we would need to use proc_open (PHP 7.4+) rather than passthru.
260261 if (function_exists ('pcntl_async_signals ' ) && function_exists ('pcntl_signal ' )) {
261262 pcntl_async_signals (true );
262263 pcntl_signal (SIGINT , SIG_IGN );
You can’t perform that action at this time.
0 commit comments