Errors using arcanist


I’m using php 8.0.25, and I get this error whenever I try to run arc:

Uncaught RuntimeException: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0

Has anyone run into this issue before? I’ve already applied 2 fixes to my arcanist tree:

* Fix PHP 8.1 incompatibility with `arc patch D<12345>
* Fix PHP 8.1.5 empty strlen with <$ arc diff --verbatim>

But they don’t seem to help.

Only one line is needed:

diff --git i/support/init/init-script.php w/support/init/init-script.php
index ad40b8bd..bd530c21 100644
--- i/support/init/init-script.php
+++ w/support/init/init-script.php
@@ -15,7 +15,7 @@ function __arcanist_init_script__() {

-  error_reporting(E_ALL | E_STRICT);
+  // error_reporting(E_ALL | E_STRICT);

   $config_map = array(
     // Always display script errors. Without this, they may not appear, which is

This didn’t work for me.

There are lots of discussion about broken arc, like this: Arcanist deprecation errors on PHP 8

I usually just run whatever the command failed with --trace option, see the stack dump, see where the null check is needed and set the null to something sensible, like empty string, or early return, etc.