Explorar el Código

Remove the error handler at the end of a run, fixes #5340

Jordi Boggiano hace 8 años
padre
commit
206c3c52e0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/Composer/Console/Application.php

+ 3 - 0
src/Composer/Console/Application.php

@@ -228,9 +228,12 @@ class Application extends BaseApplication
                 $io->writeError('<info>Memory usage: '.round(memory_get_usage() / 1024 / 1024, 2).'MB (peak: '.round(memory_get_peak_usage() / 1024 / 1024, 2).'MB), time: '.round(microtime(true) - $startTime, 2).'s');
             }
 
+            restore_error_handler();
+
             return $result;
         } catch (\Exception $e) {
             $this->hintCommonErrors($e);
+            restore_error_handler();
             throw $e;
         }
     }