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 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:
MUST BE VALID
Solve the problem:
38 + 13 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 21:01:27 2024 UTC