Bug #63923 [Opn->Nab]: filter_var( $mail, FILTER_VALIDATE_EMAIL) crash Apache if $mail longer than 155
| From: | pajoye@php.net | Date: | Mon, 07 Jan 2013 20:18:31 +0000 |
| Subject: | Bug #63923 [Opn->Nab]: filter_var( $mail, FILTER_VALIDATE_EMAIL) crash Apache if $mail longer than 155 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-175836@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63923&edit=1
ID: 63923
Updated by: pajoye@php.net
Reported by: remi at minimal-beton dot com
Summary: filter_var( $mail, FILTER_VALIDATE_EMAIL) crash
Apache if $mail longer than 155
-Status: Open
+Status: Not a bug
Type: Bug
Package: Reproducible crash
Operating System: Windows 7
PHP Version: 5.3.20
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Issue with pcre and stack size.
Previous Comments:
------------------------------------------------------------------------
[2013-01-07 20:14:02] remi at minimal-beton dot com
Haaaaaaaaaaaaaaaaaaaaaaaaaaaa :)
I'm starting to understand :)
Thanks.
------------------------------------------------------------------------
[2013-01-07 20:11:52] pajoye@php.net
it is the PCRE regex to parse the email, it needs recursion. It may not use the
16MB but most of apache builds out there use a way too small stack size on
windows. Much smaller than on Linux.
------------------------------------------------------------------------
[2013-01-07 20:08:03] remi at minimal-beton dot com
16 Mo to manage a 160 length string...
I'm not enough good to understand :(
------------------------------------------------------------------------
[2013-01-07 19:17:06] ab@php.net
After
editbin /stack:16777216 httpd.exe
I get bool(false) while running under apache. Previously crash with the default value. Seems like it
can be solved with just increasing the stack size
------------------------------------------------------------------------
[2013-01-07 18:38:34] pajoye@php.net
Can you try in CLI please? While you did not provide a backtrace, I am pretty sure
it is related to PCRE stack limit issue.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=63923
--
Edit this bug report at https://bugs.php.net/bug.php?id=63923&edit=1