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

From: Date: Sat, 20 Nov 2021 22:28:42 +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-237885@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: phpbugs at icounsellor dot co dot uk 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: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#237885) next »