From: Operating system: Any PHP version: 5.3.2 Package: Scripting Engine problem Bug Type: Bug Bug description:Multiple -d include_path command-line directives not handled correctly
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 bug report at http://bugs.php.net/bug.php?id=51403&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51403&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51403&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51403&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51403&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51403&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51403&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51403&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51403&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51403&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51403&r=support Expected behavior: http://bugs.php.net/fix.php?id=51403&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51403&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51403&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51403&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51403&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51403&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51403&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51403&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51403&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51403&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51403&r=mysqlcfg