|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-29 08:51 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 17:00:02 2025 UTC |
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.