diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index 9642ef466..07ff8bed8 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -375,7 +375,7 @@ EOT $fs = new Filesystem(); $fs->removeDirectory($realDir); exit(130); - }); + }, true); } } diff --git a/src/Composer/Installer/InstallationManager.php b/src/Composer/Installer/InstallationManager.php index 4939414e7..bd1bf8aee 100644 --- a/src/Composer/Installer/InstallationManager.php +++ b/src/Composer/Installer/InstallationManager.php @@ -218,7 +218,7 @@ class InstallationManager exit(130); }; - sapi_windows_set_ctrl_handler($windowsHandler); + sapi_windows_set_ctrl_handler($windowsHandler, true); } try {