We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b19bf commit e7181e9Copy full SHA for e7181e9
Application.php
@@ -728,7 +728,8 @@ 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;
+ // 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
$formatter = $output->getFormatter();
734
$lines = array();
735
foreach (preg_split('/\r?\n/', $e->getMessage()) as $line) {
0 commit comments