Edit report at https://bugs.php.net/bug.php?id=63923&edit=1
ID: 63923 Updated by: paj...@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] paj...@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] a...@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] paj...@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