It’s still a bug, but I think it might be a bug in pcre2. The other Matthew (in CC) might need to bump the shlibs on the shared lib to >= 10.39
-- Ondřej Surý <ond...@sury.org> (He/Him) > On 15. 11. 2021, at 14:54, Matthew Krauss <zeros0and1o...@yahoo.com> wrote: > > After running apt upgrade, it works fine. I honestly thought I had upgraded > everything earlier, but had somehow missed doing that one machine. Very > embarrassing, sorry for the waste of time! > > Sent from Yahoo Mail on Android > > On Mon, Nov 15, 2021 at 2:04 AM, Ondřej Surý > <ond...@sury.org> wrote: > Hi, > > is your system fully upgraded? > > What’s libpcre2 version? > > Ondřej > -- > Ondřej Surý <ond...@sury.org> (He/Him) > > > On 15. 11. 2021, at 2:51, Matthew Krauss <zeros0and1o...@yahoo.com> wrote: > > > > Package: php8.1-common > > Version: 8.1.0~rc5-1 > > Severity: grave > > Justification: renders package unusable > > X-Debbugs-Cc: zeros0and1o...@yahoo.com > > > > Dear Maintainer, > > > > After installing php8.1 on testing, I found that most PHP packages are > > failing. For instance, composer, whether installed directly from > > getcomposer.org, or through the Debian package, is broken by this bug, > > as well as likely the vast majority of PHP based software. > > > > The problem seems to be in an underlying regexp library, I *think*, > > and seems to break most of the built in php regexp functions. > > > > Simple demonstration, with both php7.4 and php8.1 installed: > > > > $ php7.4 -r 'var_export(preg_replace("/foo/", "bar", "some foo here")); > > echo "\ndone\n";' > > 'some bar here' > > done > > > > $ php8.1 -r 'var_export(preg_replace("/foo/", "bar", "some foo here")); > > echo "\ndone\n";' > > PHP Warning: preg_replace(): Compilation failed: unrecognised compile-time > > option bit(s) at offset 0 in Command line code on line 1 > > NULL > > done > > > > The php7.4 command runs correctly and is what I would expect. The php8.1 > > command generates a warning, as well as incorrect output. > > > > > > -- System Information: > > Debian Release: bookworm/sid > > APT prefers testing > > APT policy: (500, 'testing') > > Architecture: amd64 (x86_64) > > > > Kernel: Linux 5.4.0-4-amd64 (SMP w/2 CPU threads) > > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE > > not set > > Shell: /bin/sh linked to /bin/dash > > Init: systemd (via /run/systemd/system) > > LSM: AppArmor: enabled > > > > Versions of packages php8.1 depends on: > > ii libapache2-mod-php8.1 8.1.0~rc5-1 > > ii php8.1-common 8.1.0~rc5-1 > > > > php8.1 recommends no packages. > > > > php8.1 suggests no packages. > > > > Versions of packages php8.1-common depends on: > > ii libc6 2.31-17 > > ii libffi8 3.4.2-3 > > ii libssl1.1 1.1.1l-1 > > ii php-common 2:76 > > ii ucf 3.0043 > > > > -- no debconf information > > >