#30608 [Opn->Bgs]: Fatal error when using require_once
| From: | derick@php.net | Date: | Fri, 29 Oct 2004 06:51:09 +0000 |
| Subject: | #30608 [Opn->Bgs]: Fatal error when using require_once | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68463@lists.php.net to get a copy of this message | ||
ID: 30608
Updated by: derick@php.net
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