We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 555fde5 commit 6e57380Copy full SHA for 6e57380
src/Symfony/Component/Console/Application.php
@@ -728,8 +728,11 @@ public function renderException($e, $output)
728
do {
729
$title = sprintf(' [%s] ', get_class($e));
730
$len = $strlen($title);
731
+ $width = $this->getTerminalWidth() ? $this->getTerminalWidth() - 1 : PHP_INT_MAX;
732
// HHVM only accepts 32 bits integer in str_split, even when PHP_INT_MAX is a 64 bit integer: https://github.com/facebook/hhvm/issues/1327
- $width = $this->getTerminalWidth() ? $this->getTerminalWidth() - 1 : (defined('HHVM_VERSION') ? 1 << 31 : PHP_INT_MAX);
733
+ if (defined('HHVM_VERSION') && $width > 1 << 31) {
734
+ $width = 1 << 31;
735
+ }
736
$formatter = $output->getFormatter();
737
$lines = array();
738
foreach (preg_split('/\r?\n/', $e->getMessage()) as $line) {
0 commit comments