php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59443 htscanner adds an extra whitespace at the end of lines
Submitted: 2010-10-01 08:57 UTC Modified: 2010-11-21 20:16 UTC
From: karel at narfum dot org Assigned: martynas (profile)
Status: Closed Package: htscanner (PECL)
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: karel at narfum dot org
New email:
PHP Version: OS:

 

 [2010-10-01 08:57 UTC] karel at narfum dot org
Description:
------------
I'm running a Lighttpd setup with php5-cgi as fastcgi on a Debian Lenny server.

It seems htscanner is adding an extra whitespace character at the end of all my php_value configuration directives:

Fatal error: require_once() [function.require]: Failed opening required 'config.inc.php' (include_path='.:/opt/web/lib ') in /opt/web/www/index.php on line 3

Notice the extra whitespace after lib and the single quote.

This happened for both the php_value include_path and auto_prepend_file directives. It did not matter if I used single or double quotes around the filename.

Reproduce code:
---------------
.htaccess
<IfModule mod_php5.c>
        php_value include_path .:/opt/web/lib
        #php_value auto_prepend_file config.inc.php
        #php_value auto_prepend_file /opt/web/lib/config.inc.php
</IfModule>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-21 20:16 UTC] martynas at venck dot us
The htscanner parser code has been rewritten in trunk.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC