Replies: 6 comments
-
This is not a packaging issue. PHP 8.2 uses pcre2, so perhaps you might want to check this with pcre2 upstream. |
Beta Was this translation helpful? Give feedback.
-
There is nothing wrong with this regex. I wrote a little test, and PHP CLI matched the same pattern as expected. But through PHP FPM the same pattern is not matched. |
Beta Was this translation helpful? Give feedback.
-
Have you tried disabling pcre.jit ini setting?Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I tried it, but it makes no difference. |
Beta Was this translation helpful? Give feedback.
-
I understand, but yet again, it's hardly a packaging problem. The pcre version is same for both CLI and FPM. |
Beta Was this translation helpful? Give feedback.
-
But then what could be the problem? The regular expression is fine. Both the PHP 8.2 CLI version matches it correctly, so does the pcr2test utility. Only the FPM version does not match it. In the wiki there are many other replacements that all work, only 3 replacements that replace such single quotes do not work. |
Beta Was this translation helpful? Give feedback.
-
I use the following statement to convert a wiki text into html:
$content = preg_replace("/'''(.*)'''/Um", '<strong>$1</strong>', $content);
With content like
'''Text'''
it should give<strong>Text</strong>
.This worked with PHP 7.4 from original Debian 11 package, but not with PHP 8.2 from packages.sury.org.
Beta Was this translation helpful? Give feedback.
All reactions