Skip to content
Permalink
Browse files

Fix #1601 - prevent threaded execution when pcre.jit is set to 1

  • Loading branch information...
muglug committed May 8, 2019
1 parent b83f540 commit dbc7dea048aae0daa796426cb8d60ba4066463dd
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/Psalm/Internal/Fork/Pool.php
@@ -58,6 +58,18 @@ public function __construct(
);
}
if (ini_get('pcre.jit') === '1'
&& \PHP_OS === 'Darwin'
&& version_compare(PHP_VERSION, '7.3.0') >= 0
) {
die(
'Mac users: pcre.jit is set to 1 in your PHP config.' . PHP_EOL
. 'The pcre jit is known to have problems in PHP 7.3 on Macs, and Psalm' . PHP_EOL
. 'will not execute in threaded mode to avoid indecipherable errors'
. PHP_EOL
);
}
// We'll keep track of if this is the parent process
// so that we can tell who will be doing the waiting
$is_parent = false;

0 comments on commit dbc7dea

Please sign in to comment.
You can’t perform that action at this time.