ID:               30989
 Updated by:       [EMAIL PROTECTED]
 Reported By:      info at e-novative dot de
-Status:           Open
+Status:           Wont fix
 Bug Type:         Filesystem function related
 Operating System: Windows XP
 PHP Version:      5.0.2
 New Comment:

This has already been suggested before, please search the bug system
before posting bugs.


Previous Comments:
------------------------------------------------------------------------

[2004-12-06 01:21:47] info at e-novative dot de

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 this bug report at http://bugs.php.net/?id=30989&edit=1

Reply via email to