php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26858 php_value is buggy for paths
Submitted: 2004-01-10 09:07 UTC Modified: 2004-01-11 06:32 UTC
From: webmaster at cricel dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.4 OS: Win32 Widows XP
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at cricel dot com
New email:
PHP Version: OS:

 

 [2004-01-10 09:07 UTC] webmaster at cricel dot com
Description:
------------
Using php_value to set include_path into httpd.conf or .htaccess keeps the last " into the variable.

Example,
php_php_value include_path "/mydisk/mydir/" 
will set include_path to /mydisk/mydir/"
therefore any include/require statement will build
/mydisk/mydic/"myfile.inc.php 
while is expected
/mydisk/mydic/myfile.inc.php
 

Reproduce code:
---------------
php_value include_path "C:\Documents and Settings\JM\Mes documents\Web\www\html\ssi\php\"


Expected result:
----------------
C:\Documents and Settings\JM\Mes documents\Web\www\html\ssi\php\

Actual result:
--------------
C:\Documents and Settings\JM\Mes documents\Web\www\html\ssi\php\"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-10 20:15 UTC] sniper@php.net
Can not reproduce with latest CVS. (and AFAICT, it's apache bug if any)

 [2004-01-11 06:32 UTC] webmaster at cricel dot com
I found the cause:

- on Win32 platform, if the path ends with \", Apache understand to force a " char in a string (backquoted).

So the path string must be ended without a \
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 12:01:32 2024 UTC