php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58307 Failed to interpret valid php_value include_path
Submitted: 2008-08-11 04:08 UTC Modified: 2009-03-03 20:32 UTC
From: bhuisgen at interact dot lu Assigned: pajoye (profile)
Status: Closed Package: htscanner (PECL)
PHP Version: 5.2.5 OS: Gentoo 2008.0 2.6.24-hardened-r3
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: bhuisgen at interact dot lu
New email:
PHP Version: OS:

 

 [2008-08-11 04:08 UTC] bhuisgen at interact dot lu
Description:
------------
OS : Gentoo 2008.0 / package dev-php5/pecl-htscanner 0.8.1 / PHP 5.2.6

htscanner fails to interpret php_value include_path.

The quotes (') or double quotes (") seems to cause a problem, because it add in all case. If quote or double quote are present in the .htaccess file, php fails to open any included files. If I remove the delimiting quotes, all is OK.



Reproduce code:
---------------
<IfModule mod_php.c>
php_value include_path '.:/usr/share/php5:/usr/share/php:/usr/share/php/smarty:/home/www/libs/php/common'
#php_value include_path ".:/usr/share/php5:/usr/share/php:/usr/share/php/smarty:/home/www/libs/php/common"
</IfModule>

Works great with this :

<IfModule mod_php.c>
php_value include_path .:/usr/share/php5:/usr/share/php:/usr/share/php/smarty:/home/www/libs/php/common
</IfModule>


Actual result:
--------------
php_value include_path '.:/usr/share/php5:/usr/share/php:/usr/share/php/smarty:/home/www/libs/php/common'

php output :

Warning: include_once(lib/ezutils/classes/ezdebug.php) [function.include-once]: failed to open stream: No such file or directory in /home/www/sites/agora.lu/www/html/lib/ezutils/classes/ezini.php on line 67

Warning: include_once() [function.include]: Failed opening 'lib/ezutils/classes/ezdebug.php' for inclusion (include_path=''.:/usr/share/php5:/usr/share/php:/usr/share/php/smarty:/home/www/libs/php/common'') in /home/www/sites/agora.lu/www/html/lib/ezutils/classes/ezini.php on line 67

Warning: eZINI::include(var/cache/ini/875bf40b060cb1c4eaa46879dd6c9f85.php) [ezini.include]: failed to open stream: No such file or directory in /home/www/sites/agora.lu/www/html/lib/ezutils/classes/ezini.php on line 431

Warning: eZINI::include() [function.include]: Failed opening 'var/cache/ini/875bf40b060cb1c4eaa46879dd6c9f85.php' for inclusion (include_path=''.:/usr/share/php5:/usr/share/php:/usr/share/php/smarty:/home/www/libs/php/common'') in /home/www/sites/agora.lu/www/html/lib/ezutils/classes/ezini.php on line 431

Warning: require_once(lib/ezutils/classes/ezdebug.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/sites/agora.lu/www/html/lib/ezfile/classes/ezfile.php on line 39

Fatal error: require_once() [function.require]: Failed opening required 'lib/ezutils/classes/ezdebug.php' (include_path=''.:/usr/share/php5:/usr/share/php:/usr/share/php/smarty:/home/www/libs/php/common'') in /home/www/sites/agora.lu/www/html/lib/ezfile/classes/ezfile.php on line 39

Note the extra quotes in include_path

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-13 10:35 UTC] bhuisgen at interact dot lu
http://public.hosting.interact.lu/files/htscanner-fix_quotedvalue.patch

This is my patch for htscanner 0.8.1 to extract quoted values. Works perfectly on my web server.
 [2009-03-03 20:32 UTC] pierre dot php at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/htscanner


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC