ld-elf.so.1: /usr/local/lib/php/20210902/mbstring.so: Undefined symbol "pcre2_compile_8"

From: void <void_at_f-m.fm>
Date: Fri, 24 May 2024 13:57:44 UTC
Hello,

This has started happening again [ possibly related to
https://lists.freebsd.org/archives/freebsd-ports/2023-December/005009.html 
it looks similar ]

Differences:
php-fpm and *not* mod_php
php81-8.1.28
apache24-2.4.59
13.2-RELEASE-p11 

To "fix" the problem, i force rebuilt just php81-mbstring-8.1.28 and 
pcre2-10.43 and reinstalled. apache24 was still able to run.
Service restart php-fpm was all OK.

About 12 hrs later (when apache does a graceful restart) it failed to
restart, giving the error

"ld-elf.so.1: /usr/local/lib/php/20210902/mbstring.so: Undefined symbol 
"php_pcre2_compile"" in httpd-errors.

I then went to the poudriere instance and deleted all php.
Then edited the make.conf for that poudriere instance like so:

OPTIONS_UNSET+=PCRE
OPTIONS_SET+=PCRE2

and rebuilt, then force-installed php plus mbstring and pcre2, and 
started apache and it was able to start.
Then ran apachectl graceful and it came back.

Has something happened to apache24/php/mbstring/pcre/pcre2 over the last month?
Nothing in /usr/ports/UPDATING

--