Bug #81640 [Com]: preg_match compilation fails after upgrade from 7.4.25 to 7.4.26
Edit report at https://bugs.php.net/bug.php?id=81640&edit=1
ID: 81640
Comment by: mikijezi at gmail dot com
Reported by: calvet dot thomas at gmail dot com
Summary: preg_match compilation fails after upgrade from
7.4.25 to 7.4.26
Status: Open
Type: Bug
Package: PCRE related
Operating System: Ubuntu
PHP Version: 7.4.26
Block user comment: N
Private report: N
New Comment:
Hello, I was this problem on Ubuntu 20.04.1 LTS, upgrade libpcre2-8-0 solve problem. I used:
apt install --only-upgrade libpcre2-8-0
Previous Comments:
------------------------------------------------------------------------
[2021-11-22 06:44:44] chamath dot gunasekara at gmail dot com
I'm also getting this error in my Gitlab php 7.4 image
PHP Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0
in /builds/project_group/prj1/composer-setup.php on line 1076
Warning: preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in
/builds/project_group/prj1/composer-setup.php on line 1076
Signature mismatch, could not verify the phar file integrity
The download failed repeatedly, aborting.
ERROR: Job failed: exit code 1
Today I got to know this issue. Please let us know how we can fix it.
Thanks
------------------------------------------------------------------------
[2021-11-20 22:28:42] phpbugs at icounsellor dot co dot uk
Thank you for posting this.
I too upgraded Debian (php7.4 to v 7.4.26) and experienced the same runtime failures:-
>> PHP message: PHP Warning: preg_match(): Compilation failed: unrecognised compile-time
>> option bit(s) at offset 0 in /home/sites/xxxxxxxx-redacted-xxxxxxx.php on line 235
Upgrading libpcre2-8-0 to version 10.36 (via Debian's testing distribution) solved my problems
(yay!)
My guess: the PHP guys were expecting libpcre2-8-0 to have been upgraded to 10.36 in the stable
channel but something hiccoughed/got out of sync.
------------------------------------------------------------------------
[2021-11-19 17:22:04] cmb@php.net
There is a respective downstream bug report[1]. Not sure which
one is not a bug. :)
[1] <https://github.com/oerdnj/deb.sury.org/issues/1682>
------------------------------------------------------------------------
[2021-11-19 16:02:34] calvet dot thomas at gmail dot com
Description:
------------
Hello, after upgrading from PHP 7.4.25 to PHP 7.4.26 on my servers, preg_match and preg_match_all
compilation started to fail with the following error message: "PHP Warning: preg_match_all():
Compilation failed: unrecognised compile-time option bit(s) at offset 0".
To resolve it I had to upgrade the libpcre2-8-0 package. The libpcre2-8-0 was at "version"
10.36, I upgraded it to "version" 10.39.
Test script:
---------------
preg_match('/abc/', 'foo');
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81640&edit=1
Thread (6 messages)