Skip to content

Commit

Permalink
fix large strings (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeofguenter authored Jan 25, 2018
1 parent 3235660 commit 3675c94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
ini_set('xdebug.var_display_max_data', -1);
ini_set('xdebug.var_display_max_depth', -1);

// this is needed to regex larger lines
if (!empty(getenv('MYFORMER_PCRE_BACKTRACK_LIMIT'))) {
ini_set('pcre.backtrack_limit', getenv('MYFORMER_PCRE_BACKTRACK_LIMIT'));
} else {
ini_set('pcre.backtrack_limit', 1024 * 1024 * 10);
}

require_once __DIR__ . '/vendor/autoload.php';

use App\Commands\TransformCommand;
Expand Down

0 comments on commit 3675c94

Please sign in to comment.