Doc #65001 [Opn->Wfx]: string argument length limits for preg_match() are not written in the man page
| From: | aharvey@php.net | Date: | Wed, 12 Jun 2013 19:19:01 +0000 |
| Subject: | Doc #65001 [Opn->Wfx]: string argument length limits for preg_match() are not written in the man page | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9921@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65001&edit=1
ID: 65001
Updated by: aharvey@php.net
Reported by: bakaburg1 at gmail dot com
Summary: string argument length limits for preg_match() are
not written in the man page
-Status: Open
+Status: Wont fix
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.4.16
Block user comment: N
Private report: N
New Comment:
There is a warning generated when the pattern size limit is hit. Given that, I
don't think it's really worth documenting, particularly since libpcre doesn't
have a hard and fast limit â it varies depending on how it's compiled, and
boilerplate along the lines of "The maximum pattern length may be limited by the
libpcre build configuration" seems useless.
Previous Comments:
------------------------------------------------------------------------
[2013-06-09 22:58:26] bakaburg1 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.preg-match#refsect1-function.preg-
match-parameters
---
I got crazy to understand why preg_match() in my script wasn't working than I
realize that the problem could have been in the length of the string I was
passing
to it.
A little search and indeed there was a length limiti for the passed string.
Well I think it should be written pretty clearly in the function manual page,
together with ways to circumvent the problem (increase the limit or
substr[inging]). It would be quite useful, especially for newbies that could not
be able to solve the problem by themselves easily.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65001&edit=1