ID:               46034
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at ryank dot net
 Status:           Open
 Bug Type:         CGI related
 Operating System: WinXP
 PHP Version:      5.2.6
 New Comment:

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)


Previous Comments:
------------------------------------------------------------------------

[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

------------------------------------------------------------------------

[2008-09-09 18:41:50] [EMAIL PROTECTED]

You may enclose the value with ' or " like in php.ini

------------------------------------------------------------------------

[2008-09-09 18:14:17] php at ryank dot net

This apparently works fine though...

C:\>php -r "print ini_get('include_path');" -d include
_path=.;c:\test1;c:\test2

.;c:\test1;c:\test2

------------------------------------------------------------------------

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

Reply via email to