Skip to content
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

function.preg-match does not reference that input string length is limited to pcre.backtrack_limit #4526

Open
mvl22 opened this issue Mar 10, 2025 · 0 comments

Comments

@mvl22
Copy link

mvl22 commented Mar 10, 2025

From manual page: https://php.net/function.preg-match

If the $subject parameter is too long, this function will fail. It is subject to pcre.backtrack_limit, but this is not referenced on the page.

It would be useful if the subject parameter documented this explicitly.

See another user who ran into the same mysterious problem: https://stackoverflow.com/questions/4180910/#comment92414114_4180924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant