Bug #81640 [Com]: preg_match compilation fails after upgrade from 7.4.25 to 7.4.26

From: Date: Mon, 22 Nov 2021 06:44:44 +0000
Subject: Bug #81640 [Com]: preg_match compilation fails after upgrade from 7.4.25 to 7.4.26
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237900@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81640&edit=1 ID: 81640 Comment by: chamath dot gunasekara 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: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#237900) next »