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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC