From: Operating system: Windows 7 PHP version: 5.3.4 Package: *Configuration Issues Bug Type: Bug Bug description:CLI include_path bug
Description: ------------ On Windows 7, 'include' fails to load files from some folders in the include_path, when the 'include_path' is configured like. include_path = ".;C:\xampp\php\PEAR\;C:\myApp\" It seems that, when starting the include path with '.;', everything after the second folder (e.g. C:\myApp\ and further ) is ignored by the include-command. When '.;' is removed from the include_path, everything works as expected. This behaviour only appears when using PHP as CLI. Test script: --------------- <?php //make sure C:\myApp\MyClass.php does exists! set_include_path('.;C:\xampp\php\PEAR\;C:\myApp\'); include 'MyClass.php'; $obj = new MyClass(); print_r($obj); Expected result: ---------------- Some info about the $obj-object Actual result: -------------- PHP Fatal error: Class 'MyClass' not found in <testscript.php> -- Edit bug report at http://bugs.php.net/bug.php?id=53642&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53642&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53642&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53642&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53642&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53642&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53642&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53642&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53642&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53642&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53642&r=support Expected behavior: http://bugs.php.net/fix.php?id=53642&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53642&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53642&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53642&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53642&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53642&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53642&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53642&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53642&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53642&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53642&r=mysqlcfg