|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66692 "parse" flag left On after </IfModule>
Submitted: 2014-02-11 04:42 UTC Modified: 2014-02-11 04:52 UTC
From: ache666 at gmail dot com Assigned: martynas (profile)
Status: Closed Package: htscanner (PECL)
PHP Version: 5.5.9 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ache666 at gmail dot com
New email:
PHP Version: OS:


 [2014-02-11 04:42 UTC] ache666 at gmail dot com
See this code in htscanner.c:
                       if (!strcasecmp(tok, "<IfModule")) {
                                TOKEN(tok, FILE_SEPARATOR);
                                parse = !strcmp(tok, MOD_PHP(PHP_MAJOR_VERSION) ">");
                        } else if (!strcasecmp(tok, "</IfModule>")) {
                                parse = 1;
If I read it correctly, last line should be "parse = 0;"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-11 04:52 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: martynas
 [2014-02-11 04:52 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

No.  We want to parse everything outside </IfModule> context;  and ignore everything inside <IfModule> context if PHP_MAJOR_VERSION doesn't match.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 09:03:34 2022 UTC