php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ache666 at gmail dot com
New email:
PHP Version: OS:

 

 [2014-02-11 04:42 UTC] ache666 at gmail dot com
Description:
------------
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;"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 11:01:28 2024 UTC