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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 22:01:36 2025 UTC