|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
50 - 33 = ?
Subscribe to this entry?

 [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: Wed Jan 19 08:03:13 2022 UTC