File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Symfony/Component/Console Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -728,8 +728,11 @@ public function renderException($e, $output)
728
728
do {
729
729
$ title = sprintf (' [%s] ' , get_class ($ e ));
730
730
$ len = $ strlen ($ title );
731
+ $ width = $ this ->getTerminalWidth () ? $ this ->getTerminalWidth () - 1 : PHP_INT_MAX ;
731
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
732
- $ 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
+ }
733
736
$ formatter = $ output ->getFormatter ();
734
737
$ lines = array ();
735
738
foreach (preg_split ('/\r?\n/ ' , $ e ->getMessage ()) as $ line ) {
You can’t perform that action at this time.
0 commit comments