-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.1-rc5 fail with any preg_*() function #1680
Comments
Seems like dup of #1674 to me. |
Don't look like a php bug. It's working in https://3v4l.org/rJvkX#v8.1rc3 and with any docker image Only fail when using these packages. Extra info: when |
Have you actually read the other issue? Especially the part about pcre2 libraries? |
Yes, but it's only necessary to add But why with |
What are the pcre2 library versions on system where it works and what are the versions where it doesn't? |
E.g. is you system fully upgraded when you are testing the issue? |
The dockerfile does not do an upgrade, only an update, that will be your problem @joanhey the focal tarball that the docker image is constructed from (as I understand it) was generated way back on the 6/7th of October. I don't use docker, but I just spun up a fresh 20.04 EC2 instance, an initial update & upgrade brings in
And 8.1 CLI works... $ php8.1 -r "echo preg_replace('/fubar/', 'hello world', ' fubar ');" |
Using inside a docker with Update the docker file to use php8.1: And appear these errors: Add and it don't have errors: That happens with all frameworks. |
As above, you are missing an upgrade here. |
Yes, but But not when using only |
Did you come for help or to argue? I can't tell anymore... |
I try to help. I understand that the correct way will be to upgrade the docker. But if Thank you for your hard work and sorry for use your time. |
Frequently asked questions
Describe the bug
All preg_*() functions fail with:
Compilation failed: unrecognised compile-time option bit(s) at offset 0 in file ...
Almost with
preg_match(), preg_match_all(), preg_split()
andpreg_replace()
.It's failing with all the php frameworks in https://github.com/TechEmpower/FrameworkBenchmarks
To Reproduce
Steps to reproduce the behavior:
Use this docker file:
https://github.com/TechEmpower/FrameworkBenchmarks/blob/fe90508e82feb91a0bb72e94e75865609517b2b1/frameworks/PHP/php/php.dockerfile
And try to use any preg_*() function.
With php 8.0 is working without problems.
Distribution (please complete the following information):
The text was updated successfully, but these errors were encountered: