#30989 [NEW]: Multiple include/require case problem with drive letters
From: info at e-novative dot de
Operating system: Windows XP
PHP version: 5.0.2
PHP Bug Type: Filesystem function related
Bug description: Multiple include/require case problem with drive letters
Description:
------------
Include and require treat drive letters in path names case-sensitive
(whereas Windows does not). This leads to (unjustified) "Cannot redeclare
..." errors for classes or functions in certain situations.
Reproduce code:
---------------
include_once 'c:/some/path/file.php';
include_once 'c:/some/PATH/file.php';
include_once 'C:/some/path/file.php';
(assume file.php contains a function or class definition)
Expected result:
----------------
Running all three include statements should be safe, as the path
definitely points to the same directory on Windows. I remember PHP4 used
to choke on the second include because paths were treated
case-insensitive, however PHP5 chokes on the third one.
Actual result:
--------------
The third include_once statement yields an error
"Cannot redeclare ... (previously declared in ...) ..."
--
Edit bug report at http://bugs.php.net/?id=30989&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30989&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30989&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30989&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30989&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30989&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30989&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30989&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30989&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30989&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30989&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30989&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30989&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30989&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30989&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30989&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30989&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30989&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30989&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30989&r=mysqlcfg
Thread (4 messages)
- info at e-novative dot de