Bug #51403 [Opn->Bgs]: Multiple -d include_path command-line directives not handled correctly
| From: | johannes@php.net | Date: | Fri, 26 Mar 2010 20:07:20 +0000 |
| Subject: | Bug #51403 [Opn->Bgs]: Multiple -d include_path command-line directives not handled correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149080@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51403&edit=1
ID: 51403
Updated by: johannes@php.net
Reported by: ericp at activestate dot com
Summary: Multiple -d include_path command-line directives not
handled correctly
-Status: Open
+Status: Bogus
Type: Bug
Package: Scripting Engine problem
Operating System: Any
PHP Version: 5.3.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
-d sets the setting, consequentially calls overwrite it, the last ones
wins. That's the only consistent way to do it ...
Previous Comments:
------------------------------------------------------------------------
[2010-03-26 19:57:57] ericp at activestate dot com
Description:
------------
If I try to specify more than one include_path directive on
the command-line, only one sticks. WIth the following two
command-lines, I expected to see two entries, but only saw
the first.
1. Default case -- I see all three entries from my php.ini
$ php test.php
include_path=.;C:\apps\xampp\php\PEAR;c:\apps\smarty\libs
$ php -d include_path=c:\php-5.2.8\PEAR;c:\php-5.2.8\PEAR\phpunit
test.php
include_path=c:\php-5.2.8\PEAR
I was expecting to see both entries, not just the first. I'd also
like an option to add to the existing include_path setting,
not just override it.
$ php -d include_path=c:\php-5.2.8\PEAR -d
include_path=c:\php-5.2.8\PEAR\phpunit test.php
include_path=c:\php-5.2.8\PEAR\phpunit
Here I get the second entry only.
Test script:
---------------
<?php
print "include_path=";
print ini_get("include_path");
print "\n";
?>
Expected result:
----------------
See the description.
Actual result:
--------------
See the description.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51403&edit=1