ID: 30608 Updated by: [EMAIL PROTECTED] Reported By: yogistra at msn dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows 2K Pro PHP Version: 5.0.2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php This was also filed as a bug before. Previous Comments: ------------------------------------------------------------------------ [2004-10-29 04:12:31] yogistra at msn dot com Description: ------------ When using require_once to include the same file but using different cases for the file name PHP issues an error. For example in file X I do this require_once('common.inc') require_once('Problem.inc') In 'common.inc' I also have 'Problem.inc' included but like this: require_once('PROBLEM.inc') Now when I run file X I get a redefination problem. On windows case doesnt matter. This is exactly the error I got: Fatal error: Cannot redeclare logactivity() (previously declared in d:\myphplib\WEB_LOGGING.inc:11) in d:\myphplib\WEB_Logging.inc on line 21 Reproduce code: --------------- require_once('any_file.inc'); require_once('any_FILE.inc'); Expected result: ---------------- I dont expect errors. Actual result: -------------- I get errors. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30608&edit=1