CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: min(zero, one)?
(Example: nine)

The Note You're Voting On

teracci2002
15 years ago
When you use preg_match() for security purpose or huge data processing,
mayby you should make consideration for backtrack_limit and recursion_limit.
http://www.php.net/manual/en/pcre.configuration.php

These limits may bring wrong matching result.
You can verify whether you hit these limits by checking preg_last_error().
http://www.php.net/manual/en/function.preg-last-error.php

<< Back to user notes page

To Top