Skip to content

Commit fa2aaf9

Browse files
committed
Prepare 1.4.2
1 parent adf43f8 commit fa2aaf9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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

@@ -57,7 +60,8 @@
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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
8081
These static methods provide information from the current process, regardless of whether it has been restarted or not.

src/XdebugHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)