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
