#26858 [Bgs]: php_value is buggy for paths
| From: | webmaster at cricel dot com | Date: | Sun, 11 Jan 2004 11:32:03 +0000 |
| Subject: | #26858 [Bgs]: php_value is buggy for paths | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53103@lists.php.net to get a copy of this message | ||
ID: 26858
User updated by: webmaster at cricel dot com
Reported By: webmaster at cricel dot com
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Win32 Widows XP
PHP Version: 4.3.4
New Comment:
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 \
Previous Comments:
------------------------------------------------------------------------
[2004-01-10 20:15:31] sniper@php.net
Can not reproduce with latest CVS. (and AFAICT, it's apache bug if
any)
------------------------------------------------------------------------
[2004-01-10 09:07:17] 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\"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26858&edit=1