ID: 46034
Updated by: [EMAIL PROTECTED]
Reported By: php at ryank dot net
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: WinXP
PHP Version: 5.2.6
New Comment:
There's no bug here.
Previous Comments:
------------------------------------------------------------------------
[2008-10-03 06:36:59] [EMAIL PROTECTED]
Works fine for me:
C:\php\src\Release_TS>php -v
PHP 5.3.0alpha3-dev (cli) (built: Oct 2 2008 21:44:41)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2008 Zend Technologies
C:\php\src\Release_TS>php -r "print ini_get('include_path');" -d
"include_path='
C:\test1.ini;C:\test2.ini'"
C:\test1.ini;C:\test2.ini
The Windows shell only likes the double quote sign, so therefore
"include_path='xxxx'" will work. but not 'include_path="xxxx"' (Will
cause a alert saying 'Invalid configuration directive')
------------------------------------------------------------------------
[2008-09-11 14:39:57] [EMAIL PROTECTED]
The quotes are "used" by your shell, just like those around the php
code.
-d "include_path=foo;bar" is passed as -d include_path=foo;bar to php.
You must enclose the quotes themselves, for example by using single
quotes: -d 'include_path="foo;bar"' (works on "classic" shells, but I
don't know how windows handles this)
------------------------------------------------------------------------
[2008-09-11 14:24:28] php at ryank dot net
Still having issues:
C:\>php -r "print ini_get('include_path');" -d
"include_path=c:\testing1;c:\testing2"
c:\testing1
C:\>php -r "print ini_get('include_path');" -d
"include_path=.;c:\testing1;c:\testing2"
.;c:\testing1;c:\testing2
------------------------------------------------------------------------
[2008-09-10 20:15:59] [EMAIL PROTECTED]
You need to enclose all of it in quotes:
# php -d "include_path=some;path;here" ..
------------------------------------------------------------------------
[2008-09-10 16:21:09] php at ryank dot net
Double quotes do not appear to help:
C:\>php -r "print ini_get('include_path');"
-d include_path=".;:\test1;c:\test2"
.;c:\test1;c:\test2
C:\>php -r "print ini_get('include_path');"
-d include_path="c:\test1;c:\test2"
c:\test1
Single quotes become part of the directive:
C:\>php -r "print ini_get('include_path');" -d
include_path='c:\test1;c:\test2'
'c:\test1
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/46034
--
Edit this bug report at http://bugs.php.net/?id=46034&edit=1